I/O Redirect?
Hi,
I am experimenting with SELinux, while doing so, I have edited the ping.te to include
domain_auto_trans(user_t, ping_exec_t, ping_t)
type user_ping_t, file_type, sysadmfile;file_type_auto_trans(ping_t, tmp_t, user_ping_t)
however, files which were created in /tmp using commands such as:
ping 127.0.0.5 -c 4 > pingfile
do not result in a user_ping_t context file being saved, instead the result was a user_tmp_t . Is using redirection the cause of it? or is there anyway to produce the file with the desired context with I/O redirection?
Any input is appreciated.
Regards,
Keen
--
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 5 lines · On Wed, 25 Feb 2004 20:23, "[email protected]" <[email protected]>…
however, files which were created in /tmp using commands such as:
ping 127.0.0.5 -c 4 > pingfiledo not result in a
user_ping_tcontext file being saved,
When you do "command > file" the shell will create the file. The context of the file is determined at file creation time, therefore it is determined by the context of the shell.
Signature · 10 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.