policy under version control
I find it tiresom and uneffective to make changes to policy without and easy way to feed my effords upstream. Actually i feel selinux stands and falls with a smoothly working policy. this needs attention and time of many, not just one.
i would therefor suggest to create a public readabel repository against which one can update and also some scripts for mailing back/submitting to the repository(?) the changes needed to make the subsystems work.
some with some clue should go through this and apply those patches.
does it make sense to make this a inter-distribution-spanning process, perhaps with manpower from the nsa? the nsa policy seems to be not intended for use, right now and lacks relevance in that regard.
--
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 · Andreas Schuldei
I find it tiresom and uneffective to make changes to policy without and easy way to feed my effords upstream. Actually i feel selinux stands and falls with a smoothly working policy. this needs attention and time of many, not just one.
I second that. I get frightened every time I update the policy because I know it'll break half my local changes.
Also, the update process needs refinement. For one, I find it very tiresome (and error-prone!) to not bundle packages.
For example, there are many policy files that we can be reasonably sure will be part of EVERY system. I don't know many Linux systems that wouldn't want the rules for mount and init, for example.
Why not just lump them into one bundle? Not one .te file, but one installer question.
Quoted 4 lines
i would therefor suggest to create a public readabel repository against which one can update and also some scripts for mailing back/submitting to the repository(?) the changes needed to make the subsystems work.
Some of the more modern cvs replacements seem suited for this. Arch and Subversion both might work great with a proper setup.
Also, whatever happened to Collins attempt to automate the install?
Signature · 8 lines
http://web.lemuria.org/pubkey.html pub 1024D/2D7A04F5 2002-05-16 Tom Vogt <[email protected]> Key fingerprint = C731 64D1 4BCF 4C20 48A4 29B2 BF01 9FA1 2D7A 04F5 -- 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 5 lines · Tom
Quoted 4 lines · Andreas Schuldei
I find it tiresom and uneffective to make changes to policy without and easy way to feed my effords upstream. Actually i feel selinux stands and falls with a smoothly working policy. this needs attention and time of many, not just one.
Currently the most effective way of getting policy changes sent upstream is to send them to me, I bundle them with other patches and send them to Howard.
Quoted 9 lines
Also, the update process needs refinement. For one, I find it very tiresome (and error-prone!) to not bundle packages.
For example, there are many policy files that we can be reasonably sure will be part of EVERY system. I don't know many Linux systems that wouldn't want the rules for mount and init, for example.
Why not just lump them into one bundle? Not one .te file, but one installer question.
This is a different issue to that raised by Andreas. It will be resolved for Debian when Collin's code is merged (should happen soon).
Signature · 10 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.
Quoted 10 lines · Andreas Schuldei
I find it tiresom and uneffective to make changes to policy without and easy way to feed my effords upstream. Actually i feel selinux stands and falls with a smoothly working policy. this needs attention and time of many, not just one.
i would therefor suggest to create a public readabel repository against which one can update and also some scripts for mailing back/submitting to the repository(?) the changes needed to make the subsystems work.
Quoted 7 lines
some with some clue should go through this and apply those patches.
does it make sense to make this a inter-distribution-spanning process, perhaps with manpower from the nsa? the nsa policy seems to be not intended for use, right now and lacks relevance in that regard.
There is already a sourceforge CVS tree, and patches can be posted to the selinux list.
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.
Quoted 2 lines · Stephen Smalley
There is already a sourceforge CVS tree, and patches can be posted to the selinux list.
The problem I see with read-only CVS and a post-to-mailinglist approach is that it's non-trivial to maintain various sets of the same policy.
It seems that in the long run we won't be able to do with a single default policy. We'll need a couple, or a modular approach. Something very much like Debian's tasksel or other tools for other distributions where you have 5-10 fields you can check what your machine is going to be, and the relevant policy is then assembled automatically.
One of the things that I heard arch can do very well is allow people to make local branches of a repository while still linking to it so that their local changes automatically stay in sync with the upstream repository.
That's just one idea. The more I talk and work with SE, and I work mostly from a user perspective in that I very rarely dabble in the SE code itself, the more I belief that the policy is the major point deciding over broad acceptance or not.
Signature · 8 lines
http://web.lemuria.org/pubkey.html pub 1024D/2D7A04F5 2002-05-16 Tom Vogt <[email protected]> Key fingerprint = C731 64D1 4BCF 4C20 48A4 29B2 BF01 9FA1 2D7A 04F5 -- 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 5 lines · Tom
It seems that in the long run we won't be able to do with a single default policy. We'll need a couple, or a modular approach. Something very much like Debian's tasksel or other tools for other distributions where you have 5-10 fields you can check what your machine is going to be, and the relevant policy is then assembled automatically.
I keep my own patch diff file between mine and Russell's default package.
Signature · 12 lines
------------------------------------------------------ Dale Amon [email protected] +44-7802-188325 International linux systems consultancy Hardware & software system design, security and networking, systems programming and Admin "Have Laptop, Will Travel" ------------------------------------------------------ -- 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 5 lines · Tom
It seems that in the long run we won't be able to do with a single default policy. We'll need a couple, or a modular approach. Something very much like Debian's tasksel or other tools for other distributions where you have 5-10 fields you can check what your machine is going to be, and the relevant policy is then assembled automatically.
I also see a need for multiple policy distributions, but I don't think that they will be close enough to each other to enable them to productively be in the same tree.
Some policy files such as core_macros.te can be in all policies, but most of the .te files won't.
I think that policies will either be close enough that macros can be used to merge them, or different enough that they can't be kept to gether in any way.
Signature · 10 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.
Quoted 9 lines · Russell Coker
I also see a need for multiple policy distributions, but I don't think that they will be close enough to each other to enable them to productively be in the same tree.
Some policy files such as core_macros.te can be in all policies, but most of the .te files won't.
I think that policies will either be close enough that macros can be used to merge them, or different enough that they can't be kept to gether in any way.
That's exactly where a more modern replacement of 20-year-old CVS would help. From what I read about arch, it would be well possible to define, say:
This is Tom's Whatever Policy Repository
all macros and these and these file_contexts and domain/program files are identical to the upstream policy (*)
these 2 files are different (**)
these 4 files replace their counterparts upstream
these 12 files are new
(*) this definition is very much like a network-aware symlink (**) very much like a diff, with a built-in pointer to the URL of the original
I think this'll be very much easier than a dozen people either maintaining a dozen policies, or keeping a dozen diff sets up to date.
Also, it solves the patch nightmare for users. You go to one place and issue a checkout command, instead of finding the original, the 5 patches you need, and then fiddling around in how to apply them in what order to get it all working.
Note: I haven't worked with arch yet except for some testing. I'm just trying to point out that we could make our lives easier. I volunteer for setting up an arch repository for a testrun, if there's enough people interested.
Signature · 8 lines
http://web.lemuria.org/pubkey.html pub 1024D/2D7A04F5 2002-05-16 Tom Vogt <[email protected]> Key fingerprint = C731 64D1 4BCF 4C20 48A4 29B2 BF01 9FA1 2D7A 04F5 -- 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.
[We're kind of drifting offtopic here; if anyone has questions about arch/tla, [email protected] is a better place]
Quoted 3 lines · Tom
That's exactly where a more modern replacement of 20-year-old CVS would help. From what I read about arch, it would be well possible to define, say:
When I was maintaining my own policy tree over the summer, I used arch. (As I do for everything nowadays). It's in
Archive: [email protected]
Location: http://arch.verbum.org/arch-debian
if you're curious.
Quoted 10 lines
This is Tom's Whatever Policy Repository
all macros and these and thesefile_contextsand domain/program files are identical to the upstream policy (*)
these 2 files are different (**)
these 4 files replace their counterparts upstream
these 12 files are new(*) this definition is very much like a network-aware symlink (**) very much like a diff, with a built-in pointer to the URL of the original
You shouldn't think in terms of changes to individual files with arch. All changesets in arch are atomic modifications to an entire tree. So you don't really explicitly define what files are identical or whatever; instead, if you don't modify them, they simply aren't included in your changesets.
Also, instead of thinking of the distributed nature as a "network-aware symlink", I think the most important thing is that it's a truly global namespace of changesets (composed mostly of just simple patches), which have archives which map to URLs.
Quoted 1 line · Colin Walters
if you're curious.
I am :)
Quoted 10 lines
You shouldn't think in terms of changes to individual files with arch. All changesets in arch are atomic modifications to an entire tree. So you don't really explicitly define what files are identical or whatever; instead, if you don't modify them, they simply aren't included in your changesets.
Also, instead of thinking of the distributed nature as a "network-aware symlink", I think the most important thing is that it's a truly global namespace of changesets (composed mostly of just simple patches), which have archives which map to URLs.
Thanks, you explain this much better than I could. Someone else said off-list that he'd be interested. I think I'll just give it a shot and try to set up an arch repository on nox.lemuria.org this week.
Signature · 8 lines
http://web.lemuria.org/pubkey.html pub 1024D/2D7A04F5 2002-05-16 Tom Vogt <[email protected]> Key fingerprint = C731 64D1 4BCF 4C20 48A4 29B2 BF01 9FA1 2D7A 04F5 -- 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
Thanks, you explain this much better than I could. Someone else said off-list that he'd be interested. I think I'll just give it a shot and try to set up an arch repository on nox.lemuria.org this week.
I've got a repository, but the webdav access doesn't work. Anyone got experience with arch, webdav, apache2 ?
Signature · 8 lines
PGP/GPG key: http://web.lemuria.org/pubkey.html pub 1024D/2D7A04F5 2002-05-16 Tom Vogt <[email protected]> Key fingerprint = C731 64D1 4BCF 4C20 48A4 29B2 BF01 9FA1 2D7A 04F5 -- 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 3 lines · Tom
That's exactly where a more modern replacement of 20-year-old CVS would help. From what I read about arch, it would be well possible to define, say:
s/arch/tla/
arch is obsolete now, and replaced with tla.
tla is the only revision system that I know of (besides Bitkeeper) that supports distributed repositories, which I think could be rather important for selinux policy.
So I could maintain my own private repository, keep it up to date with changes to selinux, while still maintaing a revision history of my changes.
Sure, you can do this with CVS vendor branches, but this can get clumsy, and CVS wasn't designed for this purpose.
The only question mark I have with tla, is that I have never seen a conflict, and I don't know how easy it is to resolve conflicts.
There also are a few issues that take a bit of getting use to, especially if you are use to CVS. For instance, you don't commit individual files like in CVS, you commit a number of files in one go, and the revision of the entire project gets incremented (eg. similar so a changeset in Bitkeeper or a commit operation in Subversion).
(then again, I haven't migrated from using arch to tla yet for my projects either, but I will save that for another thread).
Signature · 6 lines
Brian May <[email protected]> -- 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 1 line · Brian May
arch is obsolete now, and replaced with tla.
"arch" refers to the protocol. "larch" refers to the old shell-script implementation that I think you're thinking of.
larch, tla, ArX and others are all implementations of the arch protocol.
Quoted 3 lines
tla is the only revision system that I know of (besides Bitkeeper) that supports distributed repositories, which I think could be rather important for selinux policy.
Right; I think the primary reason it would be good is because changes tend to bounce between several people as well as the NSA. So there is no clear "upstream".
Quoted 2 lines
The only question mark I have with tla, is that I have never seen a conflict, and I don't know how easy it is to resolve conflicts.
You get fewer spurious conflicts, and the conflicts that do occur are often easier to resolve because changesets are individually structured and easy to manipulate.
Quoted 1 line · Brian May
arch is obsolete now, and replaced with tla.
True.
Quoted 3 lines
So I could maintain my own private repository, keep it up to date with changes to selinux, while still maintaing a revision history of my changes.
Exactly. I am, for example, still missing my subversion policy from the default thing. Instead of buggering people to include it, I could simply set it up in my own repository and be done.
Quoted 5 lines
There also are a few issues that take a bit of getting use to, especially if you are use to CVS. For instance, you don't commit individual files like in CVS, you commit a number of files in one go, and the revision of the entire project gets incremented (eg. similar so a changeset in Bitkeeper or a commit operation in Subversion).
I've been using Subversion for well over a year now with a small team of developers, and those changes are really easy getting used to.
Signature · 8 lines
http://web.lemuria.org/pubkey.html pub 1024D/2D7A04F5 2002-05-16 Tom Vogt <[email protected]> Key fingerprint = C731 64D1 4BCF 4C20 48A4 29B2 BF01 9FA1 2D7A 04F5 -- 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 2 lines · * Tom ([email protected]) [031207 14:26]:
I've been using Subversion for well over a year now with a small team of developers, and those changes are really easy getting used to.
russel, there seems to be a some people working together on this allready. can you live with beeing a subversion-to-cvs gateway for stephen smally and relay patches and corrections to im, if you get the changes in subversion form?
everyone else:
are there public subversion repositories where people merge their changes? could you send a list please?
--
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 8 lines · Andreas Schuldei
Quoted 2 lines · * Tom ([email protected]) [031207 14:26]:
I've been using Subversion for well over a year now with a small team of developers, and those changes are really easy getting used to.
russel, there seems to be a some people working together on this allready. can you live with beeing a subversion-to-cvs gateway for stephen smally and relay patches and corrections to im, if you get the changes in subversion form?
Yes, I can do that. I'm not sure what the best way of managing this is, I want to read every patch before accepting it, so I don't want anything automated at my end.
Signature · 10 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.
Quoted 3 lines · Russell Coker
Yes, I can do that. I'm not sure what the best way of managing this is, I want to read every patch before accepting it, so I don't want anything automated at my end.
Russell, my suggestion would be this:
Have one "default policy" repository, that only you a few people can write to, but other people can use as a base.
I'd also set up a public repository with world-write access, essentially as an easy place to contribute.
Signature · 8 lines
http://web.lemuria.org/pubkey.html pub 1024D/2D7A04F5 2002-05-16 Tom Vogt <[email protected]> Key fingerprint = C731 64D1 4BCF 4C20 48A4 29B2 BF01 9FA1 2D7A 04F5 -- 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 8 lines · Andreas Schuldei
russel, there seems to be a some people working together on this allready. can you live with beeing a subversion-to-cvs gateway for stephen smally and relay patches and corrections to im, if you get the changes in subversion form?
everyone else:
are there public subversion repositories where people merge their changes? could you send a list please?
We were talking about tla/arch, not subversion. :)
I have several Subversion repositories running, and I have played with tla before. I would be willing to set up a public tla repository. In fact, I'm already working on it, I just have some trouble getting the WebDAV part running.
Signature · 8 lines
http://web.lemuria.org/pubkey.html pub 1024D/2D7A04F5 2002-05-16 Tom Vogt <[email protected]> Key fingerprint = C731 64D1 4BCF 4C20 48A4 29B2 BF01 9FA1 2D7A 04F5 -- 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.