fwknop, fwknopd, fwknop_serv
fwknop is a single passphrase authorization system. Fairly cool. selinux did not like fwknop out of the box. It wanted a new module:
module iptab2log 1.0;
require {
type var_log_t;
type iptables_t;
class file write;
}#============= iptables_t ==============
allow iptables_t var_log_t:file write;
It works now. Was there another way to do this?
William J. Chimiak
Laboratory for Telecommunication Sciences
8080 Greenmead Drive, College Park, MD 20740
301-422-5217
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 6 lines · Bill Chimiak
fwknop is a single passphrase authorization system. Fairly cool. selinux did not like fwknop out of the box. It wanted a new module:
module iptab2log 1.0;
Quoted 8 lines
require { type var_log_t; type iptables_t; class file write; }#=============
iptables_t==============
allowiptables_tvar_log_t:file write;
Did you notice any loss of functionality?
This may be a leaked file descriptor or something may be passing the open file to iptables.
You may be able to dontaudited this:
dontaudit iptables_t var_log_t:file write;
Which file exactly is it trying to write to?
By the way this is not the optimal list to be posting this to.
Quoted 10 lines
It works now. Was there another way to do this?
William J. Chimiak
Laboratory for Telecommunication Sciences
8080 Greenmead Drive, College Park, MD 20740
301-422-5217--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iEYEARECAAYFAk2V/t8ACgkQMlxVo39jgT9fUwCdFJjDtXHn1mEneKmP2H9RAk64 +BgAn3SkOt3TuYAAcHr7M1PpGJRZyQYo
=UI5R
-----END PGP SIGNATURE-----
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 21 lines · Dominick Grift
Quoted 6 lines · Bill Chimiak
fwknop is a single passphrase authorization system. Fairly cool. selinux did not like fwknop out of the box. It wanted a new module:
module iptab2log 1.0;
Quoted 8 lines
require { type var_log_t; type iptables_t; class file write; }#=============
iptables_t==============
allowiptables_tvar_log_t:file write;Did you notice any loss of functionality?
This may be a leaked file descriptor or something may be passing the open file to iptables.
Quoted 19 lines
You may be able to dontaudited this:
dontaudit
iptables_tvar_log_t:file write;Which file exactly is it trying to write to?
By the way this is not the optimal list to be posting this to.
Quoted 10 lines
It works now. Was there another way to do this?
William J. Chimiak
Laboratory for Telecommunication Sciences
8080 Greenmead Drive, College Park, MD 20740
301-422-5217--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
- --
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
Most likely a redirection of stdout.
script > /var/log/my.log
Would cause this type of AVC for any confined app being run within the script.
A hacky way to get out of it without changing policy, would be to execute script | cat > /var/log/my.log
Another option would be to set it up from append
script >> /var/log/my.log
Which would only require append privs.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iEYEARECAAYFAk2WBr0ACgkQrlYvE4MpobO1HQCfac3GdEWkNtvRP2PeXQqXftVC jqgAnR9Sd4iIj7/WoLoZULPUwo6pXhWJ
=FTQ8
-----END PGP SIGNATURE-----
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.