disabling selinux
Hi
can anybody tell , how does disabling selinux dynamically, affect running some memory related tests (i.e memory pressure, memory leak)
i have run some tests on linux which are related to memory(stress tests), they failed ,bcoz i have disabled selinux during run time(it was enabled during installation), if i dont disable selinux it works fine, why so?
thanks
satish
--
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 9 lines · abcde efghi
Hi
can anybody tell , how does disabling selinux dynamically, affect running some memory related tests (i.e memory pressure, memory leak)
i have run some tests on linux which are related to memory(stress tests), they failed ,bcoz i have disabled selinux during run time(it was enabled during installation), if i dont disable selinux it works fine, why so?
Not sure I understand. Are the tests publicly available somewhere? In what way do they fail when SELinux is disabled? With what kernel version?
I don't know of any reason offhand why they would be failing in that situation.
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.
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
my tests are failing bcoz i have disabled selinux post-install should i do any changes to filesystems then also?
and what other things i need to do once i disable selinux which was enabled during installation?
thanks
satish
Quoted 23 lines · Stephen Smalley
Quoted 10 lines · abcde efghi
hi Stephen
let me tell u the first basic pbm
oracle Db(database) creation fails when selinux is enabled during run time which was disabled during installation on RHEL4u4 (kernel version = 2.6.9-39.ELhugemem i686 GNU/Linux )
does enabling selinux during run time has same feature of selinux enabled during installation?
Keep mail on list, please, so that others can benefit and the discussion is archived for future queries.
To answer your question though, yes, there is nothing magical about enabling SELinux at install time vs. turning it on later post-install. The only thing you need to do in the post-install case is to label the filesystems, which it should actually do automatically the first time you boot with SELinux enabled. If not, you can touch /.autorelabel and reboot to force it to relabel, or boot with 'autorelabel' in the kernel command line.
Quoted 5 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.
Quoted 4 lines · abcde efghi
my tests are failing bcoz i have disabled selinux post-install should i do any changes to filesystems then also?
and what other things i need to do once i disable selinux which was enabled during installation?
- What tests?
- How are they failing?
- What makes you think it has anything to do with SELinux?
- If you disable SELinux, then it is disabled. End of story. Nothing more to do.
- If you want to re-enable SELinux, you will need to relabel your filesystems.
- You can check the status of SELinux by running /usr/sbin/sestatus.
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.
i am running some stress tests(oracle+linux) like mem-pressure and mem-leak(if u want i can give more detail on these tests,) on Rhel4 with selinux enabled during installation, they are working fine, if i disable selinux during boot time or run time these tests are failing.and if i am running same tests on same machine with selinux disabled during installation and enabled during post-install , these tests are failing
note: i am not doing any relabling on any filesystems whenever i am switching from enabling to disabling and vice-versa
these tests are running fine if i am not changing selinux during runtime
i want to get clarified on two things
1) do i need to relable filesystems once i chnage selinux state from enforce(enabled) to disable and vice-versa
2) if so what are all the filesystems i need to re-lable and how(any doc's)?
thanks
satish
Quoted 15 lines · Stephen Smalley
Quoted 4 lines · abcde efghi
my tests are failing bcoz i have disabled selinux post-install should i do any changes to filesystems then also?
and what other things i need to do once i disable selinux which was enabled during installation?- What tests?
- How are they failing?
- What makes you think it has anything to do with SELinux?
- If you disable SELinux, then it is disabled. End of story. Nothing more to do.
- If you want to re-enable SELinux, you will need to relabel your filesystems.
- You can check the status of SELinux by running/usr/sbin/sestatus.
Quoted 5 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.
Quoted 11 lines · abcde efghi
i am running some stress tests(oracle+linux) like mem-pressure and mem-leak(if u want i can give more detail on these tests,) on Rhel4 with selinux enabled during installation, they are working fine, if i disable selinux during boot time or run time these tests are failing.and if i am running same tests on same machine with selinux disabled during installation and enabled during post-install , these tests are failing
note: i am not doing any relabling on any filesystems whenever i am switching from enabling to disabling and vice-versa
Quoted 6 lines
these tests are running fine if i am not changing selinux during runtime
i want to get clarified on two things
1) do i need to relable filesystems once i chnage selinux state from enforce(enabled) to disable and vice-versa
Only when changing from disabled to enabled. To cause a relabel, touch /.autorelabel and boot with selinux enabled. It is done from rc.sysinit. Or you can do it manually by running fixfiles relabel.
Quoted 1 line
2) if so what are all the filesystems i need to re-lable and how(any doc's)?
The fixfiles script will handle it for you; just run fixfiles relabel, or touch /.autorelabel and reboot.
But I don't understand why such tests would fail with SELinux disabled. With SELinux enabled and unlabeled files, you could run into permission denials that would prevent them from running properly, but with SELinux disabled, there should be no effect. Again, what do you mean by "failing"? What output do you get from them?
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.
i am using NFS and OCFS(oracle cluster file system) filesystems, does xattr (extended attributes) supports these filesystems?
as of man pages it's no!.
i think my pbm is bcoz of these filesystems?
Quoted 34 lines · Stephen Smalley
Quoted 11 lines · abcde efghi
i am running some stress tests(oracle+linux) like mem-pressure and mem-leak(if u want i can give more detail on these tests,) on Rhel4 with selinux enabled during installation, they are working fine, if i disable selinux during boot time or run time these tests are failing.and if i am running same tests on same machine with selinux disabled during installation and enabled during post-install , these tests are failing
note: i am not doing any relabling on any filesystems whenever i am switching from enabling to disabling and vice-versa
Quoted 6 lines
these tests are running fine if i am not changing selinux during runtime
i want to get clarified on two things
1) do i need to relable filesystems once i chnage selinux state from enforce(enabled) to disable and vice-versa
Only when changing from disabled to enabled. To cause a relabel, touch /.autorelabel and boot with selinux enabled. It is done from rc.sysinit. Or you can do it manually by running fixfiles relabel.
Quoted 1 line
2) if so what are all the filesystems i need to re-lable and how(any doc's)?
The fixfiles script will handle it for you; just run fixfiles relabel, or touch /.autorelabel and reboot.
But I don't understand why such tests would fail with SELinux disabled. With SELinux enabled and unlabeled files, you could run into permission denials that would prevent them from running properly, but with SELinux disabled, there should be no effect. Again, what do you mean by "failing"? What output do you get from them?
Quoted 5 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.
Quoted 4 lines · abcde efghi
i am using NFS and OCFS(oracle cluster file system) filesystems, does xattr (extended attributes) supports these filesystems?
as of man pages it's no!.
i think my pbm is bcoz of these filesystems?
NFS doesn't yet support SELinux attributes, although there is work in progress there.
I'm not aware of any ocfs support for xattrs.
For such filesystems, you can map all files to a single context via policy or via the context= mount option. But all of this only matters when SELinux is actually enabled, of course.
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.