Skip to contentSkip to conversation

allow statement OK?

DISCUSSION Bill Chimiak 2 participants 2 messages Nov 9, 2007 – Nov 14, 2007 SELinux security module

lore
Share & tools
lore
#0 lore raw

I got a

avc: denied { search } for comm="pam_console_app" dev=sdb6 egid=650 euid=0
exe="/sbin/pam_console_apply" exit=-13 fsgid=650 fsuid=0 gid=650 items=0 name="gdm" pid=2693 scontext=system_u:system_r:pam_console_t:s0-s0:c0.c1023 sgid=650 subj=system_u:system_r:pam_console_t:s0-s0:c0.c1023 suid=0 tclass=dir tcontext=system_u:object_r:xserver_log_t:s0 tty=(none) uid=0

audit2allow recommended:

	allow pam_console_t xserver_log_t:dir search;

Is this a reasonable module for me to add? To me it seems benign.

Signature · 10 lines
William Chimiak
Laboratory for Telecommunications Sciences
8080 Greenmead Road
College Park, MD
240-949-2778

--
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.
#1 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 9 lines · Bill Chimiak

I got a

avc: denied { search } for comm="pam_console_app" dev=sdb6 egid=650 euid=0
exe="/sbin/pam_console_apply" exit=-13 fsgid=650 fsuid=0 gid=650 items=0 name="gdm" pid=2693 scontext=system_u:system_r:pam_console_t:s0-s0:c0.c1023 sgid=650 subj=system_u:system_r:pam_console_t:s0-s0:c0.c1023 suid=0 tclass=dir tcontext=system_u:object_r:xserver_log_t:s0 tty=(none) uid=0

Quoted 6 lines

audit2allow recommended:

	allow pam_console_t xserver_log_t:dir search;

Is this a reasonable module for me to add? To me it seems benign.

This is probably caused by a redirection stdout/stderr to the xserver.log. So when a confined app starts, the kernel checks the access and closes the open file descriptors. You could safely dontaudit this access.

dontaudit pam_console_t xserver_log_t:dir search_dir_perms;

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFHO1hWrlYvE4MpobMRAjxyAJwPIFbm633wiAhlJ2oe2oRGjuiomgCglo4B ZnHgA1mLj3kaIDUlMe8XR6A=
=KEes
-----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.