Skip to contentSkip to conversation

policy file management

DISCUSSION Russell Coker 2 participants 3 messages Aug 15, 2002 SELinux security module

lore
Share & tools
lore
#0 lore raw

Currently in the SE policy files we have a number of dependencies between .te files, and in my tree I am getting some conflicts.

What we need is a good way of choosing which ones to install.

I am considering the following for the start of a .te file, with postfix.te as an example:
#DESC Postfix mail server
#DEPENDS mta.te
#CONFLICTS mail-server
#PROVIDES mail-server

So postfix.te depends on mta.te (it won't be offered if you don't have mta.te), it conflicts with other mail-server policy (IE qmail.te and sendmail.te).

What do you think?

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.

#1 lore raw
Quoted 5 lines · Russell Coker

So postfix.te depends on mta.te (it won't be offered if you don't have mta.te), it conflicts with other mail-server policy (IE qmail.te and sendmail.te).

What do you think?

What tool do you propose would parse these headers?

Would you have a tool for installing policies according to these rules, or would you simply check the installed policy before compiling it?

Anyway, for my conference submission for LCA (not yet accepted), I have designed a new XML file format which defines a formal unit called a "package". This might be another solution, as each package defines domains in its own name space. It would also allow installing several different MTAs for instance, with different port numbers or something (although don't ask me why you would want to do that...).

Of course, there is still some work to do, for instance, which label from which package to use to label what files with. I need to think about this one.

Signature · 6 lines
Brian May <[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.
#2 lore raw
Quoted 8 lines · Brian May
Quoted 5 lines · Russell Coker

So postfix.te depends on mta.te (it won't be offered if you don't have mta.te), it conflicts with other mail-server policy (IE qmail.te and sendmail.te).

What do you think?

What tool do you propose would parse these headers?

A little Perl script I've just started writing.

Quoted 2 lines

Would you have a tool for installing policies according to these rules, or would you simply check the installed policy before compiling it?

Install .te files interactively based on user choices. Currently you get asked 66 [Y/n] questions about which files to install.

Quoted 1 line

Anyway, for my conference submission for LCA (not yet accepted), I

They are taking their time about it.

Quoted 5 lines

have designed a new XML file format which defines a formal unit called a "package". This might be another solution, as each package defines domains in its own name space. It would also allow installing several different MTAs for instance, with different port numbers or something (although don't ask me why you would want to do that...).

The problem with having multiple different mail servers is /usr/bin/sendmail.
It has to deliver mail into one spool. Also with Sendmail it's the same
program that does everything so it needs full rights (unlike other mail servers). So currently with my policy you can have any combination of mail servers just as long as you don't have Sendmail and another mail server.

Quoted 3 lines

Of course, there is still some work to do, for instance, which label from which package to use to label what files with. I need to think about this one.

Yes. It's a fairly ambitious project you're working on, which is why I'm hacking up Perl code to manage things in the mean time.

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.