new file contexts
When you make a new file in the policy/file_contexts/program directory do you have to specify the new file somewhere so that it gets compiled into the policy or should it just pickup the new file automatically?
Timothy,
--
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 3 lines · Timothy Wood
When you make a new file in the policy/file_contexts/program directory do you have to specify the new file somewhere so that it gets compiled into the policy or should it just pickup the new file automatically?
The policy/Makefile automatically includes up a program .fc file into the file contexts configuration for each program .te file that exists under domains/program. This approach is designed to permit users to remove program .te files for programs that they do not run and have the corresponding .fc files automatically ignored. However, you may encounter problems in selectively removing program .te files, since there may be other .te files that have dependencies on them. We are trying to wrap all such inter-domain dependencies with m4 ifdefs, but that is not yet complete.
--
Stephen D. Smalley, NAI Labs
[email protected]
--
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 3 lines · Timothy Wood
When you make a new file in the policy/file_contexts/program directory do you have to specify the new file somewhere so that it gets compiled into the policy or should it just pickup the new file automatically?
Following from Stephen's response, the main problems at the moment regarding dependencies are xdm.te depending on xserver.te, sendmail.te conflicting with other mail servers (in my policy at least - Steve may have fixed that for the NSA policy), and httpadm.te depending on apache.te. If you encounter any other instances of dependencies between .te files then please consider it a bug and report it here.
Also the file contexts data is not compiled into the policy, the file_contexts/file_contexts file is created out of all appropriate *.fc files and is then used by the setfiles program. I'm not sure whether you misunderstood this or whether your email was just unclear, so I want to make sure there's no misunderstanding (and also to make it clear for the lurkers).
Signature · 3 lines
I do not get viruses because I do not use MS software. If you use Outlook then please do not put my email address in your address-book so that WHEN you get a virus it won't use my address in the
Quoted 1 line
From field.
--
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.