All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: db conflict ?
@ 2002-04-12 17:37 Westerman, Mark
  2002-04-12 18:03 ` Russell Coker
  2002-04-12 19:17 ` Stephen Smalley
  0 siblings, 2 replies; 52+ messages in thread
From: Westerman, Mark @ 2002-04-12 17:37 UTC (permalink / raw)
  To: 'Stephen Smalley', Howard Holm; +Cc: Russell Coker, Tom, SELinux


While we are on the subject.

Could you think about placing the policy sources
into the /usr/local/selinux Directory

(i.e.
	/usr/local/selinux/policy
	/usr/local/selinux/setfiles
	/usr/local/selinux/share/doc/examples/policy
	/usr/local/selinux/share/doc/examples/setfiles


For new version of selinux the install could look and 
see if there is a /usr/local/selinux/policy and setfiles
if the directories are present the install will populate then
with the example policy. If the directories are present just
overwrite the /usr/local/selinux/share/doc/example files.


Mark  

--
You have received this message because you are subscribed to the selinux list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 52+ messages in thread
* RE: db conflict ?
@ 2002-04-15 15:16 Westerman, Mark
  0 siblings, 0 replies; 52+ messages in thread
From: Westerman, Mark @ 2002-04-15 15:16 UTC (permalink / raw)
  To: 'Howard Holm'; +Cc: 'selinux@tycho.nsa.gov'



On Monday, April 15, 2002 9:40 AM, Holm, Howard wrote:

> > The binary package will install the logrotate into
> > it normal (for Redhat at least) location.
> > I will have rpm do an uninstall of the
> > previous version of logrotate then install the 
> > NSA modified logrotate. The NSA modified version will 
> > insert a conflict to the normal logrotate.
> 
> I'm not sure what you mean by "have rpm do an uninstall"
> I would think that a "supercedes: logrotate" and maybe
> "provides: logrotate" would cause the replacement to be
> automatic and cause less confusion for other packages
> that might depend on logrotate than a "conflicts" would.
> 
You have a very good point. I did not think about requires:
I did not see supercedes: tag in my documentation, but I did 
see provides: tag. 

Mark
 

--
You have received this message because you are subscribed to the selinux list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 52+ messages in thread
* RE: db conflict ?
@ 2002-04-12 20:33 Westerman, Mark
  2002-04-15 14:40 ` Howard Holm
  0 siblings, 1 reply; 52+ messages in thread
From: Westerman, Mark @ 2002-04-12 20:33 UTC (permalink / raw)
  To: 'Howard Holm', Stephen Smalley
  Cc: Westerman, Mark, Russell Coker, Tom, SELinux

Ok,

How about this.

For a binary RPM package.
I will rename all added utils from the NSA
i.e 
logrotate-3.5.9 to logrotate-selinux-3.5.9

The binary package will install the logrotate into
it normal (for Redhat at least) location.
I will have rpm do an uninstall of the
previous version of logrotate then instll the 
NSA modified logrotate. The NSA modified version will 
insert a conflict to the normal logrotate.


When changes for the modified packages are migrated
upstream with the standard source then the modified
NSA packages can be deleted

Standard Example Policy will install to 

/usr/share/doc/selinux/examples/policy/

(Howard, I agree with Russell on the
 example policy directory, that is where 
 standard examples go)

if the Directory

/etc/selinux/policy
/etc/selinux/setfiles

do not exist I will install the example policy into
the respective directories. If they do exist I will
treat the install as an upgrade and not touch the
touch the /etc/selinux directory structure


This will require a single user mode installation



> -----Original Message-----
> From: Howard Holm [mailto:hdholm@epoch.ncsc.mil]
> Sent: Friday, April 12, 2002 3:18 PM
> To: Stephen Smalley
> Cc: Westerman, Mark; Russell Coker; Tom; SELinux@tycho.nsa.gov
> Subject: Re: db conflict ?
> 
> 
> I think I agree with Russell that binary packages shouldn't 
> be installing
> things in /usr/local/.  Perhaps we can add an environment 
> variable for the
> "prefix" that will default to /usr/local/ but can be set to /usr by
> package maintainers.  I really think the right answer for 
> policy source is
> in /usr/share which by FHS standards should be sharable between
> architectures (and I believe the policy source should be.)  
> Of course, the
> policy binary has to be on the root partition for booting 
> purposes, but
> I think it's best if for machines that are sharing /usr within an
> architecture and /usr/share between architectures, we let 
> them put policy
> source in /usr/share/.  I can't envision a situation where you would
> need to recompile policy on a system too crippled to mount 
> /usr/share/.
> 
> I'm not sure why Russell decided on 
> /usr/share/doc/selinux/examples/policy/.
> I probably would have put the policy directory higher in the hierarchy
> something like /usr/share/selinux/policy/ maybe, but that's 
> not a big issue.
> 
> On Fri, Apr 12, 2002 at 03:17:05PM -0400, Stephen Smalley wrote:
> > On Fri, 12 Apr 2002, Westerman, Mark wrote:
> > 
> > > Could you think about placing the policy sources
> > > into the /usr/local/selinux Directory
> > >
> > > For new version of selinux the install could look and
> > > see if there is a /usr/local/selinux/policy and setfiles
> > > if the directories are present the install will populate then
> > > with the example policy. If the directories are present just
> > > overwrite the /usr/local/selinux/share/doc/example files.
> > 
> > This is fine with me.  It merely involves adding a new target to the
> > policy and setfiles Makefiles to install the sources for the
> > configurations and then adjusting the README and 
> quickinstall target to
> > include that step.
> 
> --
> Howard Holm <hdholm@epoch.ncsc.mil>
> Secure Systems Research Office
> National Security Agency
> 

--
You have received this message because you are subscribed to the selinux list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 52+ messages in thread
* RE: db conflict ?
@ 2002-04-12 18:13 Westerman, Mark
  2002-04-12 19:42 ` Russell Coker
  0 siblings, 1 reply; 52+ messages in thread
From: Westerman, Mark @ 2002-04-12 18:13 UTC (permalink / raw)
  To: 'Russell Coker', Westerman, Mark,
	'Stephen Smalley', Howard Holm
  Cc: Tom, SELinux

Where every they want to put the selinux files I don't care.
I am in the process of build an rpm package (80%) complete.
I am trying to keep close to a standard NSA installation as possible.
The policy and setfiles do not belong with the source, Plus
with the rpm packages I am building, unless you install the source
rpm the source will not be there. So I am left with a question of where
to put the files. Since the NSA wants to put things in /usr/local/selinux
I will keep with that for now. If you can convince them to put them other
places OK with me.

Since you and built a Debian package I would also like keep it similar
to yours.  

What is you directory structure ? (include utils)

Mark,

> -----Original Message-----
> From: Russell Coker [mailto:russell@coker.com.au]
> Sent: Friday, April 12, 2002 1:04 PM
> To: Westerman, Mark; 'Stephen Smalley'; Howard Holm
> Cc: Tom; SELinux@tycho.nsa.gov
> Subject: Re: db conflict ?
> 
> 
> On Fri, 12 Apr 2002 19:37, Westerman, Mark wrote:
> > Could you think about placing the policy sources
> > into the /usr/local/selinux Directory
> >
> > (i.e.
> > 	/usr/local/selinux/policy
> > 	/usr/local/selinux/setfiles
> > 	/usr/local/selinux/share/doc/examples/policy
> > 	/usr/local/selinux/share/doc/examples/setfiles
> 
> I don't like any of that.
> 
> /usr/local is for the local sysadmin to copy files into, not 
> for packaged 
> software.
> 
> > For new version of selinux the install could look and
> > see if there is a /usr/local/selinux/policy and setfiles
> > if the directories are present the install will populate then
> > with the example policy. If the directories are present just
> > overwrite the /usr/local/selinux/share/doc/example files.
> 
> That's mostly what I'm doing with my Debian packages, but 
> with /etc/selinux.
> 
> -- 
> If you send email to me or to a mailing list that I use which 
> has >4 lines
> of legalistic junk at the end then you are specifically 
> authorizing me to do
> whatever I wish with the message and all other messages from 
> your domain, by
> posting the message you agree that your long legalistic sig is void.
> 

--
You have received this message because you are subscribed to the selinux list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 52+ messages in thread
* RE: db conflict ?
@ 2002-04-12 17:45 Westerman, Mark
  2002-04-12 18:12 ` Stephen Smalley
  0 siblings, 1 reply; 52+ messages in thread
From: Westerman, Mark @ 2002-04-12 17:45 UTC (permalink / raw)
  To: 'Stephen Smalley', Westerman, Mark
  Cc: Howard Holm, Russell Coker, Tom, SELinux


On Fri, 12 Apr 2002, 12:30 PM Smalley, Stephen wrote:
> 
> On Fri, 12 Apr 2002, Westerman, Mark wrote:
> 
> > Since you must create ...security why on the top
> > of every file system why not put it in there ?
> 
> The per-filesystem ...security directories are for the persistent label
> mappings.  They also have a different type, and should be  distinguished
> from the compiled policy configuration.
> 
> 

The ...security/policy directory would have a type of policy_conf_t and
the program the would install a new policy would only need to have read 
permissions on file_label_t. This directory would only exist on the root
file system and not on the other filesystems. This would keep to a minimum 
differences in the FHS (v2.2).

Mark

--
You have received this message because you are subscribed to the selinux list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 52+ messages in thread
* RE: db conflict ?
@ 2002-04-12 17:26 Westerman, Mark
  2002-04-12 17:29 ` Stephen Smalley
  0 siblings, 1 reply; 52+ messages in thread
From: Westerman, Mark @ 2002-04-12 17:26 UTC (permalink / raw)
  To: 'Stephen Smalley', Howard Holm; +Cc: Russell Coker, Tom, SELinux

Since you must create ...security why on the top
of every file system why not put it in there ?



> -----Original Message-----
> From: Stephen Smalley [mailto:sds@tislabs.com]
> Sent: Friday, April 12, 2002 12:13 PM
> To: Howard Holm
> Cc: Russell Coker; Tom; SELinux@tycho.nsa.gov
> Subject: Re: db conflict ?
> 
> 
> 
> On Fri, 12 Apr 2002, Howard Holm wrote:
> 
> > I think adding a magic number to the policy file is 
> probably a good idea.
> > I'm not quite as sure about the file name containing a 
> version number, but
> > it's probably a good idea as well.  My reading of the FHS 
> (v2.2) is that
> > it prohibits /selinux/.  My suggestion would be 
> /etc/security/policy/ or
> > /etc/security/policies/ with the thought that there might 
> be at least
> > multiple versions in the directory so plural might be appropriate.
> 
> I primarily want to keep it separate from the policy sources 
> (/etc/selinux
> in Russell's Debian package), yet clearly identified as being
> selinux-specific.  It also needs to stay within the root filesystem,
> although that isn't a problem regardless of whether we go 
> with /selinux or
> /etc/security/selinux or /etc/selinux/policy as the subdirectory name.
> The name for the file itself can be reduced to policy.VERSION 
> once it is
> in a selinux-specific directory (the ss_ prefix was just to avoid
> conflicts with other potential non-SELinux policy files, ss 
> == security
> server).
> 
> --
> Stephen D. Smalley, NAI Labs
> ssmalley@nai.com
> 
> 
> 
> 
> 
> --
> You have received this message because you are subscribed to 
> the selinux list.
> If you no longer wish to subscribe, send mail to 
> majordomo@tycho.nsa.gov with
> the words "unsubscribe selinux" without quotes as the message.
> 

--
You have received this message because you are subscribed to the selinux list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 52+ messages in thread
* db conflict ?
@ 2002-04-12 10:23 Tom
  2002-04-12 12:05 ` Russell Coker
  2002-04-12 13:06 ` Stephen Smalley
  0 siblings, 2 replies; 52+ messages in thread
From: Tom @ 2002-04-12 10:23 UTC (permalink / raw)
  To: SELinux

I have just installed a new SELinux test machine. It had an SELinux
earlier, but I deleted that and installed a new one, from the Debian
packages.

During boot, I get this error message:

security:  starting up (compiled Jan 12 2002)
security:  loading policy configuration from /ss_policy
security:  policydb version 8 does not match my version 7
security:  error while loading /ss_policy, cannot initialize.
SELinux:  Could not initialize
Freeing unused kernel memory: 208k freed
Adding Swap: 498004k swap-space (priority -1)
security_context_to_sid: called before initial load_policy on unknown context system_u:object_r:policy_config_t

something looks very wrong here. my /ss_policy is up-to-date:

-rw-r--r--    1 root     root      1291704 Apr 12 11:50 ss_policy

but my "make install" fails:

arkham:/etc/selinux# make install
install -m 644 -o root -g root policy /ss_policy
chsid system_u:object_r:policy_config_t /ss_policy
system_u:object_r:policy_config_t: Invalid argument
make: *** [install] Error 1

so that is probably the source of the problem. anyone got an idea what 
I'm doing wrong? the policy itself looks ok:

arkham:/etc/selinux# checkpolicy
checkpolicy:  loading policy configuration from policy.conf
security:  5 users, 5 roles, 488 types
security:  29 classes, 52901 rules
checkpolicy:  policy configuration loaded

I also have this error:

arkham:/etc/selinux# load_policy /ss_policy
security_load_policy: Invalid argument

maybe it's related. Since this fails, I can't relabel:

arkham:/etc/selinux# make relabel
/usr/bin/load_policy /ss_policy
security_load_policy: Invalid argument
make: *** [tmp/load] Error 2


I did remove the persistent label things:
  rm -rf /...security /var/...security


I'll try a few more things, but I'm afraid the failed make install is
the cause of all troubles, so any help would be appreciated...



-- 
http://web.lemuria.org/pubkey.html
pub  1024D/D88D35A6 2001-11-14 Tom Vogt <tom@lemuria.org>
     Key fingerprint = 276B B7BB E4D8 FCCE DB8F  F965 310B 811A D88D 35A6

--
You have received this message because you are subscribed to the selinux list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 52+ messages in thread

end of thread, other threads:[~2002-04-19 20:20 UTC | newest]

Thread overview: 52+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-12 17:37 db conflict ? Westerman, Mark
2002-04-12 18:03 ` Russell Coker
2002-04-12 19:17 ` Stephen Smalley
2002-04-12 20:11   ` Russell Coker
2002-04-12 20:25     ` Howard Holm
2002-04-12 21:01       ` Russell Coker
2002-04-15 14:44         ` Howard Holm
2002-04-12 20:18   ` Howard Holm
2002-04-15 16:08     ` Dale Amon
2002-04-18 14:54       ` Stephen Smalley
2002-04-18 15:42         ` Russell Coker
2002-04-19 20:20           ` Stephen Smalley
  -- strict thread matches above, loose matches on Subject: below --
2002-04-15 15:16 Westerman, Mark
2002-04-12 20:33 Westerman, Mark
2002-04-15 14:40 ` Howard Holm
2002-04-12 18:13 Westerman, Mark
2002-04-12 19:42 ` Russell Coker
2002-04-12 17:45 Westerman, Mark
2002-04-12 18:12 ` Stephen Smalley
2002-04-12 17:26 Westerman, Mark
2002-04-12 17:29 ` Stephen Smalley
2002-04-12 10:23 Tom
2002-04-12 12:05 ` Russell Coker
2002-04-12 13:01   ` Tom
2002-04-12 14:07     ` Russell Coker
2002-04-12 14:40       ` Stephen Smalley
2002-04-12 15:15         ` Russell Coker
2002-04-12 13:09   ` Stephen Smalley
2002-04-12 13:27     ` Russell Coker
2002-04-12 13:06 ` Stephen Smalley
2002-04-12 13:58   ` Russell Coker
2002-04-12 14:07     ` Stephen Smalley
2002-04-12 14:38       ` Russell Coker
2002-04-12 14:48         ` Stephen Smalley
2002-04-12 15:12           ` Russell Coker
2002-04-12 17:01             ` Howard Holm
2002-04-12 17:09               ` Russell Coker
2002-04-12 17:13               ` Stephen Smalley
2002-04-12 14:17     ` Tom
2002-04-12 14:21       ` Stephen Smalley
2002-04-12 14:34         ` Russell Coker
2002-04-12 14:50         ` Tom
2002-04-12 15:01       ` Tom
2002-04-12 15:11         ` Stephen Smalley
2002-04-12 15:15           ` Tom
2002-04-12 15:29           ` Tom
2002-04-12 16:35             ` Stephen Smalley
2002-04-12 16:50               ` Tom
2002-04-12 17:04                 ` Stephen Smalley
2002-04-12 17:40                   ` Tom
2002-04-12 17:49                     ` Stephen Smalley
2002-04-12 16:33         ` Russell Coker

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.