patch for ssh-agent
absolutely clueless as to what this is for, but at least it gets rid of the audit warnings, which were bugging me.
l.
Signature · 7 lines
-- Truth, honesty and respect are rare commodities that all spring from the same well: Love. If you love yourself and everyone and everything around you, funnily and coincidentally enough, life gets a lot better. -- <a href="http://lkcl.net"> lkcl.net </a> <br /> <a href="mailto:[email protected]"> [email protected] </a> <br />
macros/program/ssh_agent_macros.te +16 -1
@@ -86,7 +86,10 @@ ifdef(`xdm.te', ` allow $1_ssh_agent_t xdm_t:fd { use }; -allow $1_ssh_agent_t xdm_t:fifo_file { write }; +allow $1_ssh_agent_t xdm_t:fifo_file { read write }; + +# kdm: sigchld +allow $1_ssh_agent_t xdm_t:process { sigchld }; ') #
@@ -103,5 +106,17 @@ allow $1_ssh_t $1_tmp_t:sock_file write; allow $1_ssh_t $1_t:unix_stream_socket connectto; allow $1_ssh_t sshd_t:unix_stream_socket connectto; + +dontaudit $1_ssh_agent_t selinux_config_t:file { getattr read }; + #EXE=/usr/bin/ssh-agent NAME=config : read + #EXE=/usr/bin/ssh-agent PATH=/etc/selinux/config : getattr + +allow $1_ssh_agent_t self:dir { search }; + #EXE=/usr/bin/ssh-agent NAME=2971 : search + +allow $1_ssh_agent_t self:file { getattr read }; + #EXE=/usr/bin/ssh-agent NAME=mounts : read + #EXE=/usr/bin/ssh-agent PATH=/proc/2971/mounts : getattr + ')dnl end if ssh_agent
Quoted 2 lines · Luke Kenneth Casson Leighton
absolutely clueless as to what this is for, but at least it gets rid of the audit warnings, which were bugging me.
libselinux constructors try to:
- determine where selinuxfs is mounted via /proc/self/mounts for future use in libselinux calls that act on selinuxfs,
- determine where the "active" policy is located via /etc/selinux/config for future use in libselinux calls that act on policy files.
As a result, anything that links with libselinux will trigger these access attempts upon startup, even if the program never subsequently invokes any libselinux calls that would act on selinuxfs or a policy file. If you know the program isn't using such calls, then you can just dontaudit these rules.
Signature · 8 lines
Stephen Smalley <[email protected]> National Security Agency -- 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.
Quoted 10 lines · Stephen Smalley
Quoted 2 lines · Luke Kenneth Casson Leighton
absolutely clueless as to what this is for, but at least it gets rid of the audit warnings, which were bugging me.
libselinux constructors try to:
- determine where selinuxfs is mounted via/proc/self/mountsfor future use in libselinux calls that act on selinuxfs,
- determine where the "active" policy is located via/etc/selinux/configfor future use in libselinux calls that act on policy files.
Quoted 5 lines
As a result, anything that links with libselinux will trigger these access attempts upon startup, even if the program never subsequently invokes any libselinux calls that would act on selinuxfs or a policy file. If you know the program isn't using such calls, then you can just dontaudit these rules.
oo. okay.
well, i added dontaudit for ssh-agent and well it seems to be okay.
l.
--
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.
Quoted 2 lines · Luke Kenneth Casson Leighton
absolutely clueless as to what this is for, but at least it gets rid of the audit warnings, which were bugging me.
Are you running in permissive mode? The below line should prevent any selinux_config_t:file access unless the file handle is being inherited from kdm (in which case it would be a kdm bug and we don't want to hide it with a dontaudit).
dontaudit $1_ssh_agent_t selinux_config_t:dir { search };
Signature · 9 lines
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/~russell/ My home page -- 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.