how to use a single *.fc to set files
As the maypp example at
http://oss.tresys.com/projects/refpolicy/wiki/GettingStarted
1) create a module named myapp by writing the three files: myapp.te, myapp.if and myapp.fc
2) build the module using policy headers
$ make -f /usr/share/selinux/targeted/include/Makefile 3) insert myapp.pp # semodule -i myapp.pp
Assuming there
is "/usr/bin/myapp" in my system, then "ls -Z /usr/bin/myapp", but the security context of "/usr/bin/myapp" is not changed to "system_u:object_r:myapp_exec_t"
as expected.
How to use the mypp.fc to set files?
by Liu Jian
------
email to: [email protected]
Quoted 10 lines · Jian Liu
As the maypp example at
http://oss.tresys.com/projects/refpolicy/wiki/GettingStarted1) create a module named myapp by writing the three files: myapp.te, myapp.if and myapp.fc
2) build the module using policy headers$ make -f /usr/share/selinux/targeted/include/Makefile 3) insert myapp.pp # semodule -i myapp.pp
Quoted 7 lines
Assuming there
is "/usr/bin/myapp" in my system, then "ls -Z/usr/bin/myapp", but the security context of "/usr/bin/myapp" is not changed to "system_u:object_r:myapp_exec_t"
as expected.How to use the mypp.fc to set files?
Changing the file contexts will not automatically change the context of files. You have to explicitly relabel the file, e.g., restorecon /usr/bin/myapp.
Signature · 9 lines
Chris PeBenito Tresys Technology, LLC (410) 290-1411 x150 -- 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.