Skip to contentSkip to conversation

new Debian package

DISCUSSION Russell Coker 2 participants 5 messages May 25, 2002 – May 27, 2002 SELinux security module

lore
Share & tools
lore
#0 lore raw

I've just uploaded a new Debian package, this one has the latest patches and new policy that works a lot better. I now have a Debian machine running in enforcing mode with a policy that is not much different from the default in my package. It's running as an ADSL gateway machine (pppoatm with SpeedTouch USB driver), a web server, and has the courier POP server running.

As the basic stuff is working it won't be too difficult for you to add support for other daemons etc.

Signature · 9 lines
If you send email to me or to a mailing list that I use which has >4 lines
of legalistic junk at the end then you are specifically authorizing me to do
whatever I wish with the message and all other messages from your domain, by
posting the message you agree that your long legalistic sig is void.

--
You have received this message because you are subscribed to the selinux 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 4 lines · Russell Coker

I've just uploaded a new Debian package, this one has the latest patches and new policy that works a lot better. I now have a Debian machine running in enforcing mode with a policy that is not much different from the default in my package. It's running as an ADSL gateway machine (pppoatm with SpeedTouch USB driver), a web server, and has the courier POP server running.

As the basic stuff is working it won't be too difficult for you to add support for other daemons etc.

I tried it just now policy compilation fails with:

/usr/sbin/checkpolicy -o policy.9 policy.conerror in the statement ending on line 13924 (token ';'): unknown type ipsec_file_t

/usr/sbin/checkpolicy: error(s) encountered while parsing configuration

make: *** [policy.9] Error 1

--
You have received this message because you are subscribed to the selinux 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 10 lines · Debian User
Quoted 9 lines

I've just uploaded a new Debian package, this one has the latest patches and new policy that works a lot better. I now have a Debian machine running in enforcing mode with a policy that is not much different from the default in my package. It's running as an ADSL gateway machine (pppoatm with SpeedTouch USB driver), a web server, and has the courier POP server running.

As the basic stuff is working it won't be too difficult for you to add support for other daemons etc.

Quoted 6 lines

I tried it just now policy compilation fails with:

/usr/sbin/checkpolicy -o policy.9 policy.conerror in the statement ending on line 13924 (token ';'): unknown type ipsec_file_t

/usr/sbin/checkpolicy: error(s) encountered while parsing configuration

This means that some file you are using has a rule involving the ipsec_file_t while you have not included the ipsec.te file. Including ipsec.te is one way of solving the problem, but a better solution (if you don't want ipsec) is to find the file in question and fix it.

Old versions of initrc.te had the following:
allow initrc_t ipsec_file_t:file { read ioctl }; allow initrc_t ipsec_var_run_t:sock_file { read write };

New versions have this replacement to solve the problem:
ifdef(`ipsec.te',
`allow initrc_t ipsec_file_t:file { read ioctl }; allow initrc_t ipsec_var_run_t:sock_file { read write };')

Maybe you are using an old version of initrc.te?

If not then please send me the contents of line 13924 so I can work out the source of this.

Steve, I think that it would be good if the checkpolicy program displayed the entire line that caused the error when it can't compile a policy. Having to load the policy file in vi and type :123... repeatedly gets tiring...

Signature · 9 lines
If you send email to me or to a mailing list that I use which has >4 lines
of legalistic junk at the end then you are specifically authorizing me to do
whatever I wish with the message and all other messages from your domain, by
posting the message you agree that your long legalistic sig is void.

--
You have received this message because you are subscribed to the selinux list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#3 lore raw
In reply to Debian User
Quoted 16 lines · Russell Coker
Quoted 15 lines · Debian User
Quoted 9 lines

I've just uploaded a new Debian package, this one has the latest patches and new policy that works a lot better. I now have a Debian machine running in enforcing mode with a policy that is not much different from the default in my package. It's running as an ADSL gateway machine (pppoatm with SpeedTouch USB driver), a web server, and has the courier POP server running.

As the basic stuff is working it won't be too difficult for you to add support for other daemons etc.

I tried it just now policy compilation fails with:

/usr/sbin/checkpolicy -o policy.9 policy.conerror in the statement ending on line 13924 (token ';'): unknown type ipsec_file_t

Quoted 6 lines
Quoted 1 line

/usr/sbin/checkpolicy: error(s) encountered while parsing configuration

This means that some file you are using has a rule involving the ipsec_file_t while you have not included the ipsec.te file. Including ipsec.te is one way of solving the problem, but a better solution (if you don't want ipsec) is to find the file in question and fix it.

As a follow up to this, that turned out to be a bug in my sample policy. Just remove the lines in question from initrc.te.

Signature · 9 lines
If you send email to me or to a mailing list that I use which has >4 lines
of legalistic junk at the end then you are specifically authorizing me to do
whatever I wish with the message and all other messages from your domain, by
posting the message you agree that your long legalistic sig is void.

--
You have received this message because you are subscribed to the selinux list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#4 lore raw
Quoted 21 lines · Russell Coker
Quoted 19 lines · Russell Coker
Quoted 17 lines · Debian User
Quoted 10 lines

I've just uploaded a new Debian package, this one has the latest patches and new policy that works a lot better. I now have a Debian machine running in enforcing mode with a policy that is not much different from the default in my package. It's running as an ADSL gateway machine (pppoatm with SpeedTouch USB driver), a web server, and has the courier POP server running.

As the basic stuff is working it won't be too difficult for you to add support for other daemons etc.

I tried it just now policy compilation fails with:

/usr/sbin/checkpolicy -o policy.9 policy.conerror in the statement ending on line 13924 (token ';'): unknown type ipsec_file_t

/usr/sbin/checkpolicy: error(s) encountered while parsing configuration

Quoted 8 lines
Quoted 5 lines

This means that some file you are using has a rule involving the ipsec_file_t while you have not included the ipsec.te file. Including ipsec.te is one way of solving the problem, but a better solution (if you don't want ipsec) is to find the file in question and fix it.

As a follow up to this, that turned out to be a bug in my sample policy. Just remove the lines in question from initrc.te.

Well i got my old and new policy files mixed up and there was a bug. I do need ipsec.

--
You have received this message because you are subscribed to the selinux list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.