pppd with ipppd
A message that is not in the archive (sent off-list or not yet received): [email protected]
Firstly in future please supply patches made with "diff -u", this saves time for people who merge them (otherwise they have to run diff themselves), and it means that the patches may still apply if you generated them from an old version of the source.
Quoted 3 lines · Carsten Grohmann
I follow your suggestion and add the few line for the ipppd to the
pppd_tdomain. The attached files contains the rules and the patch for thenet_contextand network.te files.
I've applied the change to the file contexts in my tree.
Why does ipppd need to run "ifconfig" while the regular pppd doesn't? Or is it some script that calls ifconfig?
Also I expect that ifconfig does not need udp access to pppd_t, it would be just another instance of pppd not setting it's file handles to close on exec.
Quoted 2 lines
May be that some rule is SuSE specific. I missing labeling the password files in your rules. Don't you use it?
What do you mean?
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.
Am Sonntag, 8. September 2002 19:26 schrieb Russell Coker:
Quoted 6 lines
Firstly in future please supply patches made with "diff -u", this saves time for people who merge them (otherwise they have to run diff themselves), and it means that the patches may still apply if you generated them from an old version of the source.
On Fri, 6 Sep 2002 19:41, Carsten Grohmann wrote:
Quoted 8 lines
Quoted 3 lines
I follow your suggestion and add the few line for the ipppd to the
pppd_tdomain. The attached files contains the rules and the patch for thenet_contextand network.te files.I've applied the change to the file contexts in my tree.
Why does ipppd need to run "ifconfig" while the regular pppd doesn't? Or is it some script that calls ifconfig?
ifconfig is uesing by the SuSE ip-(up|down) scripts. You can remove the complete ifconfig section.
Quoted 8 lines
Also I expect that ifconfig does not need udp access to
pppd_t, it would be just another instance of pppd not setting it's file handles to close on exec.Quoted 2 lines
May be that some rule is SuSE specific. I missing labeling the password files in your rules. Don't you use it?
What do you mean?
You define the type pppd_secret_t but you don't use it. Do you labeled the secret files manual? Or have she etc_t as security context?
Carsten
--
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.
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 5 lines · Carsten Grohmann
Quoted 2 lines
Why does ipppd need to run "ifconfig" while the regular pppd doesn't? Or is it some script that calls ifconfig?
ifconfig is uesing by the SuSE ip-(up|down) scripts. You can remove the complete ifconfig section.
Or could just have "can_exec(pppd_t, ifconfig_exec_t)"...
Quoted 11 lines
Quoted 8 lines
Also I expect that ifconfig does not need udp access to
pppd_t, it would be just another instance of pppd not setting it's file handles to close on exec.Quoted 2 lines
May be that some rule is SuSE specific. I missing labeling the password files in your rules. Don't you use it?
What do you mean?
You define the type
pppd_secret_tbut you don't use it. Do you labeled the secret files manual? Or have sheetc_tas security context?
Oh yes, I just forgot about that.
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.
Am Sonntag, 8. September 2002 22:34 schrieb Russell Coker:
Quoted 8 lines · Carsten Grohmann
Quoted 5 lines
Quoted 2 lines
Why does ipppd need to run "ifconfig" while the regular pppd doesn't?
Or is it some script that calls ifconfig?ifconfig is uesing by the SuSE ip-(up|down) scripts. You can remove the complete ifconfig section.
Or could just have "
can_exec(pppd_t, ifconfig_exec_t)"...
If you don't need it, I would don't add this to the general rules. For my SuSE rules I would add this in a seperate file (pppd_suse.(te|fc)) like the other SuSE specific settings.
--
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.
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 11 lines · Carsten Grohmann
Am Sonntag, 8. September 2002 22:34 schrieb Russell Coker:
Quoted 8 lines · Carsten Grohmann
Quoted 5 lines
Quoted 2 lines
Why does ipppd need to run "ifconfig" while the regular pppd doesn't?
Or is it some script that calls ifconfig?ifconfig is uesing by the SuSE ip-(up|down) scripts. You can remove the complete ifconfig section.
Or could just have "
can_exec(pppd_t, ifconfig_exec_t)"...If you don't need it, I would don't add this to the general rules. For my
I think that there's no reason not to add it. I use ifconfig in a similar manner on some of my machines (which aren't using SE Linux yet), so there is definately a use for it on non-SUSE machines. I'll add it to my policy now.
Quoted 2 lines
SuSE rules I would add this in a seperate file (pppd_suse.(te|fc)) like the other SuSE specific settings.
Now this is an issue. Up until now we have had two branches of policy, my Debian policy and the Red Hat policy, and we have been putting things in rpm.te and dpkg.te.
If SUSE is doing the same thing as Red Hat in this regard (I get the impression that no-one is doing anything serious with Red Hat and SE Linux apart from NSA people, and they don't use dial-up networking - so it could be that Red Hat has the same issue but no-one noticed it) then it can go in rpm.te. Otherwise what do we do?
Having pppd_suse.te, crond_suse.te, etc will get ugly very quickly.
I suggest having suse.te for all the SUSE specific policy. It can have policy for all the different programs with appropriate ifdef()'s around them.
Also if we do that then perhaps we should have a redhat.te and move some of the stuff out of rpm.te, and change some of the "ifdef(rpm.te'," statements to "ifdef(redhat.te',".
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.
redhat.te and suse.te (was Re: pppd with ipppd)
Am Montag, 9. September 2002 22:36 schrieb Russell Coker:
Quoted 15 lines
Quoted 2 lines
SuSE rules I would add this in a seperate file (pppd_suse.(te|fc)) like the other SuSE specific settings.
Now this is an issue. Up until now we have had two branches of policy, my Debian policy and the Red Hat policy, and we have been putting things in rpm.te and dpkg.te.
If SUSE is doing the same thing as Red Hat in this regard (I get the impression that no-one is doing anything serious with Red Hat and SE Linux apart from NSA people, and they don't use dial-up networking - so it could be that Red Hat has the same issue but no-one noticed it) then it can go in rpm.te. Otherwise what do we do?
Having pppd_suse.te, crond_suse.te, etc will get ugly very quickly.
Quoted 7 lines
I suggest having suse.te for all the SUSE specific policy. It can have policy for all the different programs with appropriate ifdef()'s around them.
Also if we do that then perhaps we should have a redhat.te and move some of the stuff out of rpm.te, and change some of the "ifdef(
rpm.te'," statements to "ifdef(redhat.te',".
Sound like good. And we should use the m4 macro processor for the fc files too.
In my eyes we needs the m4 conditionals to build simple file contexts files. And it will by possible to remove unused single rules (like dhcpd_t) without get an error ( Unkown type ...).
Carsten
--
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.
Re: redhat.te and suse.te (was Re: pppd with ipppd)
Quoted 8 lines · Carsten Grohmann
Quoted 3 lines
Also if we do that then perhaps we should have a redhat.te and move some of the stuff out of rpm.te, and change some of the "ifdef(
rpm.te'," statements to "ifdef(redhat.te',".Sound like good. And we should use the m4 macro processor for the fc files too.
In my eyes we needs the m4 conditionals to build simple file contexts files.
I suggested this once before, Steve didn't like it so we went to having one .fc file per application.
Now that we have shown that the .fc file per application scheme works well I doubt that there is a real need to use M4 for the .fc files (it's adding extra complexity for little benefit that I can see).
Quoted 2 lines
And it will by possible to remove unused single rules (like
dhcpd_t) without get an error ( Unkown type ...).
What do you mean?
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.
Re: redhat.te and suse.te (was Re: pppd with ipppd)
Am Dienstag, 10. September 2002 18:26 schrieb Russell Coker:
Quoted 9 lines
Now that we have shown that the .fc file per application scheme works well I doubt that there is a real need to use M4 for the .fc files (it's adding extra complexity for little benefit that I can see).
Quoted 2 lines
And it will by possible to remove unused single rules (like
dhcpd_t) without get an error ( Unkown type ...).What do you mean?
I am sorry about my bad english.
Without the m4 macros specially ifdef, I would not create a single suse rule. Because with an monolithic suse.fc file it isn't possible to strip down the policy. But the possiblity to remove unused rules is ( in my eyes ) good feature of selinux. Because of that I don't see a disadvantage in the use of ifdef's also in the fc files.
Carsten
--
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.
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: redhat.te and suse.te (was Re: pppd with ipppd)
Quoted 8 lines · Carsten Grohmann
Am Dienstag, 10. September 2002 18:26 schrieb Russell Coker:
Quoted 7 lines
Now that we have shown that the .fc file per application scheme works well I doubt that there is a real need to use M4 for the .fc files (it's adding extra complexity for little benefit that I can see).
Quoted 2 lines
And it will by possible to remove unused single rules (like
dhcpd_t) without get an error ( Unkown type ...).
Quoted 8 lines
Quoted 1 line
What do you mean?
I am sorry about my bad english.
Without the m4 macros specially ifdef, I would not create a single suse rule. Because with an monolithic suse.fc file it isn't possible to strip down the policy. But the possiblity to remove unused rules is ( in my eyes ) good feature of selinux. Because of that I don't see a disadvantage in the use of ifdef's also in the fc files.
It's taken me some time to reply to this message, because it's very difficult to understand.
I think that you are saying "we already use m4 for policy so therefore there is no reason for not using it in the file contexts".
The fact is that I proposed using M4 in the file contexts before, Steve rejected the idea, and we now have an alternate solution.
If we need a redhat.fc or suse.fc then we may need to use M4, however I think that we will not need such entries. I don't expect different distributions to need different types for the same file, and therefore we can put all definitions needed by all distributions in the main files.
I suggest that we keep the current method in place until we have a concrete example of something failing with it.
Russell Coker
--
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.
Re: redhat.te and suse.te (was Re: pppd with ipppd)
Am Donnerstag, 12. September 2002 16:32 schrieb Russell Coker:
Quoted 27 lines · Carsten Grohmann
Quoted 8 lines
Am Dienstag, 10. September 2002 18:26 schrieb Russell Coker:
Quoted 7 lines
Now that we have shown that the .fc file per application scheme works well I doubt that there is a real need to use M4 for the .fc files (it's adding extra complexity for little benefit that I can see).
Quoted 2 lines
And it will by possible to remove unused single rules (like
dhcpd_t) without get an error ( Unkown type ...).Quoted 8 lines
Quoted 1 line
What do you mean?
I am sorry about my bad english.
Without the m4 macros specially ifdef, I would not create a single suse rule. Because with an monolithic suse.fc file it isn't possible to strip down the policy. But the possiblity to remove unused rules is ( in my eyes ) good feature of selinux. Because of that I don't see a disadvantage in the use of ifdef's also in the fc files.It's taken me some time to reply to this message, because it's very difficult to understand.
I think that you are saying "we already use m4 for policy so therefore there is no reason for not using it in the file contexts".
The fact is that I proposed using M4 in the file contexts before, Steve rejected the idea, and we now have an alternate solution.
Quoted 7 lines
If we need a redhat.fc or suse.fc then we may need to use M4, however I think that we will not need such entries. I don't expect different distributions to need different types for the same file, and therefore we can put all definitions needed by all distributions in the main files.
I suggest that we keep the current method in place until we have a concrete example of something failing with it.
You have right. This little example shows the boundary of the current method.
<< suse.fc >>
ifdef(cups.fc',
....
dev/usb/lp* system_u:object_r:printer_device_t
....
')
ifdef(ntpd.fc',/var/log/ntp system_u:object_r:var_log_ntp_t
')
<< EOF suse.fc >>
Advantage:
- You can errase the single policy file without to edit the suse.fc file.
Disadvantage:
- The Makefile is more complex
- The fc file could be more complex, but we could only accept m4 commands only in one or two file. The other file have to work without m4 commands.
I see there are more disadvantages then advantages. But if we like to merge the single suse file (apmd_suse.(fc|te) crond_suse, cups_suse, inetd_suse) , we need an fc file like this example, I think.
The suse fc file are not empty. SuSE use in some cases similar filenames or it uses new "devices" like /dev/blog.
Carsten
--
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.
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: redhat.te and suse.te (was Re: pppd with ipppd)
Quoted 8 lines · Carsten Grohmann
Quoted 8 lines
The fact is that I proposed using M4 in the file contexts before, Steve rejected the idea, and we now have an alternate solution.
If we need a redhat.fc or suse.fc then we may need to use M4, however I think that we will not need such entries. I don't expect different distributions to need different types for the same file, and therefore we can put all definitions needed by all distributions in the main files.
Quoted 5 lines
Quoted 2 lines
I suggest that we keep the current method in place until we have a concrete example of something failing with it.
You have right. This little example shows the boundary of the current method.
Actually your example does not show it at all.
Quoted 7 lines
<< suse.fc >>
ifdef(
cups.fc',
....
dev/usb/lp* system_u:object_r:printer_device_t
....
')
Firstly such an ifdef should probably make reference to lpd as well as cups...
Anyway /dev/usb/lp* is not a SUSE specific thing, it's documented in /usr/src/linux/Documentation/devices.txt so it applies to all distributions.
We should probably change the policy to match this now.
Quoted 3 lines
ifdef(
ntpd.fc',/var/log/ntpsystem_u:object_r:var_log_ntp_t
')
Again this does not require anything special for SUSE. Most distributions will not have a /var/log/ntp entry (I think). However I am certain that no distribution will have /var/log/ntp unless it's a log file/directory for the NTP daemon, in which case that entry is OK.
It's OK to have entries in the file_contexts that don't match anything.
Quoted 5 lines
I see there are more disadvantages then advantages. But if we like to merge the single suse file (apmd_suse.(fc|te)
crond_suse,cups_suse,inetd_suse) , we need an fc file like this example, I think.
The suse fc file are not empty. SuSE use in some cases similar filenames or it uses new "devices" like/dev/blog.
I see no advantages. As long as there is no conflict there is no problem. If SUSE uses a file named "foo" while Debian uses a file named "bar" for the same purpose, then we just put both in the file_contexts (it's what we have been doing so far). It's only if the same file is used for different purposes that we have a problem.
This problem has not occurred yet, so I don't think that we need to try solving it.
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.