Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The problem is That you are trying overwrite the existing openvpn policy module by naming your policy module the same, and trying to install it.

Good Thing it fails ;)

The issue in more details is the following:

You require type openvpn in your openvpn policy module Your module uses the same name "openvpn" as the existing openvpn policy model

So you are effectively trying to overwrite the openvpn module with a module that actually depends on a type declared in that module

So semodule fails and says, The type used in this module is not available ( and that true because you are trying to overwrite de module that has it declared )

The solution is to use a unique name for your module, for example:

"myopenvpn"

The problem is That you are trying overwrite the existing openvpn policy module by naming your policy module the same, and trying to install it.

Good Thing it fails ;)

The issue in more details is the following:

You require type openvpn openvpn_t in your openvpn policy module Your module uses the same name "openvpn" as the existing openvpn policy model

So you are effectively trying to overwrite the openvpn module with a module that actually depends on a type declared in that modulemodule by trying to install it

So semodule fails and says, The type used in this module is not available ( and that true because you are trying to overwrite de the module that has it declared )

The solution is to use a unique name for your module, for example:

"myopenvpn"

The problem is That you are trying overwrite the existing openvpn policy module by naming your policy module the same, and trying to install it.

Good Thing it fails ;)

The issue in more details is the following:

You require type openvpn_t in your openvpn policy module Your module uses the same name "openvpn" as the existing openvpn policy model

So you are effectively trying to overwrite the openvpn module with a module that actually depends on a type declared in that module by trying to install it

So semodule fails and says, The type used in this module is not available ( and that true because you are trying to overwrite the module that has it declared )

The solution is to use a unique name for your module, for example:

"myopenvpn"

echo "avc:  denied  { relabelfrom } for pid=720 comm="openvpn" scontext=system_u:system_r:openvpn_t:s0 tcontext=system_u:system_r:ifconfig_t:s0 tclass=tun_socket" | audit2allow -M myopenvpn | sudo semodule -i myopenvpn.pp

The problem is That you are trying overwrite the existing openvpn policy module by naming your policy module the same, and trying to install it.

Good Thing it fails ;)

The issue in more details is the following:

You require type openvpn_t in your openvpn policy module Your module uses the same name "openvpn" as the existing openvpn policy model

So you are effectively trying to overwrite the openvpn module with a module that actually depends on a type declared in that module by trying to install it

So semodule fails and says, The type used in this module is not available ( and that true because you are trying to overwrite the module that has it declared )

The solution is to use a unique name for your module, for example:

"myopenvpn"

echo "avc:  denied  { relabelfrom } for pid=720 comm="openvpn" scontext=system_u:system_r:openvpn_t:s0 tcontext=system_u:system_r:ifconfig_t:s0 tclass=tun_socket" | audit2allow -M myopenvpn | myopenvpn; sudo semodule -i myopenvpn.pp

The problem is That you are trying overwrite the existing openvpn policy module by naming your policy module the same, and trying to install it.

Good Thing it fails ;)

The issue in more details is the following:

You require type openvpn_t in your openvpn policy module Your module uses the same name "openvpn" as the existing openvpn policy modelmodule

So you are effectively trying to overwrite the openvpn module with a module that actually depends on a type declared in that module by trying to install it

So semodule fails and says, The type used in this module is not available ( and that true because you are trying to overwrite the module that has it declared )

The solution is to use a unique name for your module, for example:

"myopenvpn"

echo "avc:  denied  { relabelfrom } for pid=720 comm="openvpn" scontext=system_u:system_r:openvpn_t:s0 tcontext=system_u:system_r:ifconfig_t:s0 tclass=tun_socket" | audit2allow -M myopenvpn; sudo semodule -i myopenvpn.pp