Skip to contentSkip to conversation

hacked Makefile to use 17 instead of 18

DISCUSSION Luke Kenneth Casson Leighton 3 participants 5 messages Jul 31, 2004 – Aug 2, 2004 SELinux security module

lore
Share & tools
lore
#0 lore raw

well, i'm about to find out if it's okay, but i hacked the 1.14-1 Makefile to forcibly put policy file of type 18 into a file named policy.17.

not that i _care_ about this particular computer or anything :)

oh, darn, i'm using xfs, hope that's okay.

l.

Signature · 14 lines
-- 
Information I post is with honesty, integrity, and the expectation that
you will take full responsibility if acting on the information contained,
and that, should you find it to be flawed or even mildly useful, you
will act with both honesty and integrity in return - and tell me.
--
<a href="http://lkcl.net">      lkcl.net      </a> <br />
<a href="mailto:[email protected]"> [email protected] </a> <br />


--
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 3 lines · Luke Kenneth Casson Leighton

well, i'm about to find out if it's okay, but i hacked the 1.14-1 Makefile to forcibly put policy file of type 18 into a file named policy.17.

Bad idea. Why would you want to do that?

Quoted 1 line

oh, darn, i'm using xfs, hope that's okay.

XFS works on the latest kernels. But make sure you have 512 byte Inodes (see previous discussion on the list).

Signature · 9 lines
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page

--
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 6 lines · Russell Coker
Quoted 3 lines · Luke Kenneth Casson Leighton

well, i'm about to find out if it's okay, but i hacked the 1.14-1 Makefile to forcibly put policy file of type 18 into a file named policy.17.

Bad idea. Why would you want to do that?

ignorance and lack of fear. *lol*

Quoted 4 lines
Quoted 1 line

oh, darn, i'm using xfs, hope that's okay.

XFS works on the latest kernels. But make sure you have 512 byte Inodes (see previous discussion on the list).

eek! okay!

--
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.

#3 lore raw
In reply to Luke Kenneth Casson Leighton
Quoted 3 lines · Luke Kenneth Casson Leighton

well, i'm about to find out if it's okay, but i hacked the 1.14-1 Makefile to forcibly put policy file of type 18 into a file named policy.17.

Policy version number is put into the header of the binary policy as well, and the kernel will reject a version it doesn't support (for good reason). Build with checkpolicy -c 17 if you want to generate policy.17.

Signature · 8 lines
Stephen Smalley <[email protected]>
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.
#4 lore raw
Quoted 9 lines · Stephen Smalley
Quoted 3 lines · Luke Kenneth Casson Leighton

well, i'm about to find out if it's okay, but i hacked the 1.14-1 Makefile to forcibly put policy file of type 18 into a file named policy.17.

Policy version number is put into the header of the binary policy as well, and the kernel will reject a version it doesn't support (for good reason). Build with checkpolicy -c 17 if you want to generate policy.17.

rats! could have done with that tidbit at the w/e ah well i will know for next time, 2.6.8 or 9 or so.

ta stephen.

--
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.