su problems again
Is there some way to turn of the dontaudit w/ the refpolicy and a module policy build. make enableaudit seems to only change the base policy, and not any of the policies that actually do anything.
This is with the refpolicy selinux-refpolicy-sources-20071214-1 running on RHEL5.
For some reason, when the policy is enforced, I can't su from a staff_r user, yet when I try with enforcing=0 I don't get any audit messages, and I'm not really comfortable modifying every user oriented admin modules to remove the dontaudit rules. doing so in su.te helped find a few things, but I'm not sure what's blocking it now.
Sodd's Second Law: Sooner or later, the worst possible set of circumstances is bound to occur.
Quoted 4 lines · Jeremiah Jahn
Is there some way to turn of the dontaudit w/ the refpolicy and a module policy build. make enableaudit seems to only change the base policy, and not any of the policies that actually do anything.
Quoted 8 lines
This is with the refpolicy selinux-refpolicy-sources-20071214-1 running on RHEL5.
For some reason, when the policy is enforced, I can't su from a
staff_ruser, yet when I try with enforcing=0 I don't get any audit messages, and I'm not really comfortable modifying every user oriented admin modules to remove the dontaudit rules. doing so in su.te helped find a few things, but I'm not sure what's blocking it now.
If using a recent semodule, you can do semodule -DB to strip the entire policy of dontaudit rules and load the result, then semodule -B to revert to the original policy.
Signature · 8 lines
Stephen Smalley National Security Agency -- 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.
Apparently I'm not. I'm using 1.33 on a pretty clean RHEL5 box. Any idea of how difficult it will be to jump to the devel version? Or is there another way to disable the dontaudits?
Quoted 14 lines · Stephen Smalley
Quoted 4 lines · Jeremiah Jahn
Is there some way to turn of the dontaudit w/ the refpolicy and a module policy build. make enableaudit seems to only change the base policy, and not any of the policies that actually do anything.
Quoted 8 lines
This is with the refpolicy selinux-refpolicy-sources-20071214-1 running on RHEL5.
For some reason, when the policy is enforced, I can't su from a
staff_ruser, yet when I try with enforcing=0 I don't get any audit messages, and I'm not really comfortable modifying every user oriented admin modules to remove the dontaudit rules. doing so in su.te helped find a few things, but I'm not sure what's blocking it now.
Quoted 4 lines
If using a recent semodule, you can do semodule -DB to strip the entire policy of dontaudit rules and load the result, then semodule -B to revert to the original policy.
In 1880 the French captured Detroit but gave it back ... they couldn't get parts.
Quoted 3 lines · Jeremiah Jahn
Apparently I'm not. I'm using 1.33 on a pretty clean RHEL5 box. Any idea of how difficult it will be to jump to the devel version? Or is there another way to disable the dontaudits?
Since you said you are building policy from source, you can always just sed -i "s/module/base" policy/modules.conf and then make enableaudit to build everything into base with all dontaudits removed.
Quoted 23 lines · Stephen Smalley
Quoted 14 lines · Jeremiah Jahn
Quoted 4 lines
Is there some way to turn of the dontaudit w/ the refpolicy and a module policy build. make enableaudit seems to only change the base policy, and not any of the policies that actually do anything.
Quoted 8 lines
This is with the refpolicy selinux-refpolicy-sources-20071214-1 running on RHEL5.
For some reason, when the policy is enforced, I can't su from a
staff_ruser, yet when I try with enforcing=0 I don't get any audit messages, and I'm not really comfortable modifying every user oriented admin modules to remove the dontaudit rules. doing so in su.te helped find a few things, but I'm not sure what's blocking it now.Quoted 4 lines
If using a recent semodule, you can do semodule -DB to strip the entire policy of dontaudit rules and load the result, then semodule -B to revert to the original policy.
In 1880 the French captured Detroit but gave it back ... they couldn't get parts.
Signature · 8 lines
Stephen Smalley National Security Agency -- 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.
that generally resorts to errors like:
make: *** No rule to make target usbbases.if', needed by tmp/all_interfaces.conf'. Stop.
or when I just changed the build.conf to monolithic=y mono.te throws errors. At least the modules actually compile.
-jj-
Quoted 32 lines · Stephen Smalley
Quoted 3 lines · Jeremiah Jahn
Apparently I'm not. I'm using 1.33 on a pretty clean RHEL5 box. Any idea of how difficult it will be to jump to the devel version? Or is there another way to disable the dontaudits?
Since you said you are building policy from source, you can always just sed -i "s/module/base"
policy/modules.confand then make enableaudit to build everything into base with all dontaudits removed.Quoted 23 lines · Stephen Smalley
Quoted 14 lines · Jeremiah Jahn
Quoted 4 lines
Is there some way to turn of the dontaudit w/ the refpolicy and a module policy build. make enableaudit seems to only change the base policy, and not any of the policies that actually do anything.
Quoted 8 lines
This is with the refpolicy selinux-refpolicy-sources-20071214-1 running on RHEL5.
For some reason, when the policy is enforced, I can't su from a
staff_ruser, yet when I try with enforcing=0 I don't get any audit messages, and I'm not really comfortable modifying every user oriented admin modules to remove the dontaudit rules. doing so in su.te helped find a few things, but I'm not sure what's blocking it now.Quoted 4 lines
If using a recent semodule, you can do semodule -DB to strip the entire policy of dontaudit rules and load the result, then semodule -B to revert to the original policy.
In 1880 the French captured Detroit but gave it back ... they couldn't get parts.
Parkinson's Fifth Law: If there is a way to delay in important decision, the good bureaucracy, public or private, will find it.
Quoted 2 lines · Jeremiah Jahn
that generally resorts to errors like:
make: *** No rule to make targetusbbases.if', needed bytmp/all_interfaces.conf'. Stop.
Ah, that's just because my sample sed script was a bit too aggressive and changed usbmodules = module to usbbases = base ;) Just fix that by hand and you should be fine. Chris likely knows a cleaner way to do it (cc'd).
Quoted 42 lines
or when I just changed the build.conf to monolithic=y mono.te throws errors. At least the modules actually compile.
-jj-
Quoted 32 lines · Stephen Smalley
Quoted 3 lines · Jeremiah Jahn
Apparently I'm not. I'm using 1.33 on a pretty clean RHEL5 box. Any idea of how difficult it will be to jump to the devel version? Or is there another way to disable the dontaudits?
Since you said you are building policy from source, you can always just sed -i "s/module/base"
policy/modules.confand then make enableaudit to build everything into base with all dontaudits removed.Quoted 23 lines · Stephen Smalley
Quoted 14 lines · Jeremiah Jahn
Quoted 4 lines
Is there some way to turn of the dontaudit w/ the refpolicy and a module policy build. make enableaudit seems to only change the base policy, and not any of the policies that actually do anything.
Quoted 8 lines
This is with the refpolicy selinux-refpolicy-sources-20071214-1 running on RHEL5.
For some reason, when the policy is enforced, I can't su from a
staff_ruser, yet when I try with enforcing=0 I don't get any audit messages, and I'm not really comfortable modifying every user oriented admin modules to remove the dontaudit rules. doing so in su.te helped find a few things, but I'm not sure what's blocking it now.Quoted 4 lines
If using a recent semodule, you can do semodule -DB to strip the entire policy of dontaudit rules and load the result, then semodule -B to revert to the original policy.
In 1880 the French captured Detroit but gave it back ... they couldn't get parts.
Parkinson's Fifth Law: If there is a way to delay in important decision, the good bureaucracy, public or private, will find it.
Signature · 8 lines
Stephen Smalley National Security Agency -- 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.
Any idea what this is about?
policy/modules/system/mount.te:18:ERROR 'syntax error' at token 'typeattribute' on line 844559:
This is the third one I've gotten. I got the same error for mono and monop. This is why I didn't just change the build.conf file. I seem to be able to move on to the next on if I set this back to module instead of base, but this seems to not seem right to me.
Quoted 51 lines · Stephen Smalley
Quoted 2 lines · Jeremiah Jahn
that generally resorts to errors like:
make: *** No rule to make targetusbbases.if', needed bytmp/all_interfaces.conf'. Stop.Ah, that's just because my sample sed script was a bit too aggressive and changed usbmodules = module to usbbases = base ;) Just fix that by hand and you should be fine. Chris likely knows a cleaner way to do it (cc'd).
Quoted 42 lines
or when I just changed the build.conf to monolithic=y mono.te throws errors. At least the modules actually compile.
-jj-
Quoted 32 lines · Stephen Smalley
Quoted 3 lines · Jeremiah Jahn
Apparently I'm not. I'm using 1.33 on a pretty clean RHEL5 box. Any idea of how difficult it will be to jump to the devel version? Or is there another way to disable the dontaudits?
Since you said you are building policy from source, you can always just sed -i "s/module/base"
policy/modules.confand then make enableaudit to build everything into base with all dontaudits removed.Quoted 23 lines · Stephen Smalley
Quoted 14 lines · Jeremiah Jahn
Quoted 4 lines
Is there some way to turn of the dontaudit w/ the refpolicy and a module policy build. make enableaudit seems to only change the base policy, and not any of the policies that actually do anything.
Quoted 8 lines
This is with the refpolicy selinux-refpolicy-sources-20071214-1 running on RHEL5.
For some reason, when the policy is enforced, I can't su from a
staff_ruser, yet when I try with enforcing=0 I don't get any audit messages, and I'm not really comfortable modifying every user oriented admin modules to remove the dontaudit rules. doing so in su.te helped find a few things, but I'm not sure what's blocking it now.Quoted 4 lines
If using a recent semodule, you can do semodule -DB to strip the entire policy of dontaudit rules and load the result, then semodule -B to revert to the original policy.
In 1880 the French captured Detroit but gave it back ... they couldn't get parts.
Parkinson's Fifth Law: If there is a way to delay in important decision, the good bureaucracy, public or private, will find it.
Earth is a beta site.
Quoted 9 lines · Jeremiah Jahn
Any idea what this is about?
policy/modules/system/mount.te:18:ERROR 'syntax error' at token 'typeattribute' on line 844559:
This is the third one I've gotten. I got the same error for mono and monop. This is why I didn't just change the build.conf file. I seem to be able to move on to the next on if I set this back to module instead of base, but this seems to not seem right to me.
Yes, sounds like a bug in the policy. Surrounding context from that line might be useful, although I'm sure Chris can reproduce easily enough just by trying a build that puts everything into base.
Signature · 8 lines
Stephen Smalley National Security Agency -- 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.
Doesn't look like it actually. For some reason, my module screws up anything that comes after it, when compiled to base. it starting with "mon*" seemed a little too coincidental. so I removed it and got other errors though. I'm just going to remove stuff by hand. As much as I'd like to just compile a monolithic policy, I've spent too much time on the issue.
thanx for your help.
Quoted 6 lines · Stephen Smalley
Quoted 5 lines · Jeremiah Jahn
Any idea what this is about?
policy/modules/system/mount.te:18:ERROR 'syntax error' at token 'typeattribute' on line 844559:
Quoted 9 lines
Quoted 4 lines
This is the third one I've gotten. I got the same error for mono and monop. This is why I didn't just change the build.conf file. I seem to be able to move on to the next on if I set this back to module instead of base, but this seems to not seem right to me.
Yes, sounds like a bug in the policy. Surrounding context from that line might be useful, although I'm sure Chris can reproduce easily enough just by trying a build that puts everything into base.
The rain it raineth on the just And also on the unjust fella, But chiefly on the just, because The unjust steals the just's umbrella.
Modified the make file rules to run sed -i "s/dontaudit/#dontaudit/" on the .mod files in tmp before running checkpolicy on them. Worked like a charm.
thanx for all your help.
Quoted 6 lines · Stephen Smalley
Quoted 5 lines · Jeremiah Jahn
Any idea what this is about?
policy/modules/system/mount.te:18:ERROR 'syntax error' at token 'typeattribute' on line 844559:
Quoted 9 lines
Quoted 4 lines
This is the third one I've gotten. I got the same error for mono and monop. This is why I didn't just change the build.conf file. I seem to be able to move on to the next on if I set this back to module instead of base, but this seems to not seem right to me.
Yes, sounds like a bug in the policy. Surrounding context from that line might be useful, although I'm sure Chris can reproduce easily enough just by trying a build that puts everything into base.
Vila: "I think I have just made the biggest mistake of my life." Orac:
"It is unlikely. I would predict there are far greater mistakes waiting to be made by someone with your obvious talent for it."
Would it be worthwhile to submit a patch against the Rules.modular that disables the dontaudits? Seems like a simple and useful patch without requiring a whole new tool chain.
-jj-
Quoted 6 lines · Stephen Smalley
Quoted 5 lines · Jeremiah Jahn
Any idea what this is about?
policy/modules/system/mount.te:18:ERROR 'syntax error' at token 'typeattribute' on line 844559:
Quoted 9 lines
Quoted 4 lines
This is the third one I've gotten. I got the same error for mono and monop. This is why I didn't just change the build.conf file. I seem to be able to move on to the next on if I set this back to module instead of base, but this seems to not seem right to me.
Yes, sounds like a bug in the policy. Surrounding context from that line might be useful, although I'm sure Chris can reproduce easily enough just by trying a build that puts everything into base.
Paradise is exactly like where you are right now ... only much, much better. -- Laurie Anderson
Quoted 3 lines · Jeremiah Jahn
Would it be worthwhile to submit a patch against the Rules.modular that disables the dontaudits? Seems like a simple and useful patch without requiring a whole new tool chain.
Seems useful to me. Although it would be very nice if semodule -DB support could get back ported into a RHEL 5 update...
Quoted 20 lines
-jj-
Quoted 6 lines · Stephen Smalley
Quoted 5 lines · Jeremiah Jahn
Any idea what this is about?
policy/modules/system/mount.te:18:ERROR 'syntax error' at token 'typeattribute' on line 844559:
Quoted 9 lines
Quoted 4 lines
This is the third one I've gotten. I got the same error for mono and monop. This is why I didn't just change the build.conf file. I seem to be able to move on to the next on if I set this back to module instead of base, but this seems to not seem right to me.
Yes, sounds like a bug in the policy. Surrounding context from that line might be useful, although I'm sure Chris can reproduce easily enough just by trying a build that puts everything into base.
Paradise is exactly like where you are right now ... only much, much better. -- Laurie Anderson
Signature · 8 lines
Stephen Smalley National Security Agency -- 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.