Bug 682529 - SELinux is preventing /bin/systemd-tty-ask-password-agent from using the 'sys_tty_config' capabilities.
Summary: SELinux is preventing /bin/systemd-tty-ask-password-agent from using the 'sys...
Keywords:
Status: CLOSED DUPLICATE of bug 682528
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 15
Hardware: i386
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:4910e93f6ce...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-06 12:45 UTC by Thomas Meyer
Modified: 2011-03-07 22:12 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-03-07 22:12:21 UTC
Type: ---


Attachments (Terms of Use)

Description Thomas Meyer 2011-03-06 12:45:34 UTC
SELinux is preventing /bin/systemd-tty-ask-password-agent from using the 'sys_tty_config' capabilities.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that systemd-tty-ask-password-agent should have the sys_tty_config capability by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# grep systemd-tty-ask /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:systemd_passwd_agent_t:s0
Target Context                system_u:system_r:systemd_passwd_agent_t:s0
Target Objects                Unknown [ capability ]
Source                        systemd-tty-ask
Source Path                   /bin/systemd-tty-ask-password-agent
Port                          <Unbekannt>
Host                          (removed)
Source RPM Packages           systemd-19-1.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.15-2.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.38-rc7-00142-g212e349 #267 Sat Mar 5 21:22:31
                              CET 2011 i686 i686
Alert Count                   4
First Seen                    So 06 Mär 2011 12:30:09 CET
Last Seen                     So 06 Mär 2011 13:35:02 CET
Local ID                      947870b9-a300-4f38-8857-4eb860811d92

Raw Audit Messages
type=AVC msg=audit(1299414902.499:559): avc:  denied  { sys_tty_config } for  pid=870 comm="systemd-tty-ask" capability=26  scontext=system_u:system_r:systemd_passwd_agent_t:s0 tcontext=system_u:system_r:systemd_passwd_agent_t:s0 tclass=capability


type=SYSCALL msg=audit(1299414902.499:559): arch=i386 syscall=ioctl success=yes exit=0 a0=8 a1=5401 a2=bfc1496c a3=bfc149ac items=0 ppid=1 pid=870 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=systemd-tty-ask exe=/bin/systemd-tty-ask-password-agent subj=system_u:system_r:systemd_passwd_agent_t:s0 key=(null)

Hash: systemd-tty-ask,systemd_passwd_agent_t,systemd_passwd_agent_t,capability,sys_tty_config

audit2allow

#============= systemd_passwd_agent_t ==============
allow systemd_passwd_agent_t self:capability sys_tty_config;

audit2allow -R

#============= systemd_passwd_agent_t ==============
allow systemd_passwd_agent_t self:capability sys_tty_config;

Comment 1 Daniel Walsh 2011-03-07 22:12:21 UTC

*** This bug has been marked as a duplicate of bug 682528 ***


Note You need to log in before you can comment on or make changes to this bug.