All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: SELinux RPM Version
@ 2002-04-22 12:19 Westerman, Mark
  2002-04-22 13:54 ` Tom
                   ` (3 more replies)
  0 siblings, 4 replies; 31+ messages in thread
From: Westerman, Mark @ 2002-04-22 12:19 UTC (permalink / raw)
  To: 'Russell Coker', Westerman, Mark, SELinux


On Friday, April 19, 2002 5:37 PM, Russell Coker wrote:

> >
> > /etc/selinux/policy	The main policy directory
> > If the directory does not exist then the rpm
> > packages will create it and install example policy files.
> >
> > /etc/selinux/setfiles	Same for the policy directory
> 
> The setfiles policy will be under the same directory in the 
> next upstream and  that's what I'm doing in my Debian package, 
> you may want to do the same.

Will make the change

> 
> > The example policy is installed
> > /usr/share/doc/selinux/examples/policy
> 
> I'm now using /usr/share/selinux/policy/default for the default.
> 
> > Flask files
> > /usr/lib/flask
> 
> What files?

access_vectors, initial_sids, and security_classes

> Here's my current locations:
> /usr/bin/chsid
> /usr/bin/schfn
> /usr/bin/schsh
> /usr/bin/load_policy
> /usr/bin/spasswd
> /usr/bin/checkpolicy
> /usr/bin/newrole
> /usr/bin/avc_toggle
> /usr/bin/lchsid
> /usr/bin/list_sids
> /usr/bin/chsidfs
> /usr/bin/avc_enforcing
> /usr/sbin/se_dpkg		
	Not included in the rpm version
> /usr/sbin/run_init		
	will change to this location
> /usr/sbin/setfiles		
	will change to this location
> /usr/sbin/se_apt-get
	What is this ?	
> /usr/sbin/se_dselect
 	What is this ?

> > All packages such as
> > fileutils-4.1-4
> >
> > have been renamed to
> >
> > fileutils-selinux-4.1-4
> >
> > This packages provides: fileutils
> 
> Currently I'm just using an incrementally higher version number for my 
> packages while determining whether the changes can go into 
> the main packages.


I am going to keep my naming method of the modified utilities. 
I think using a higher version number is confusing to an end user. I will
keep with <utility>-selinux-<version>-<release> naming convention.
I will add Obsoletes: to the rpm spec files and see if the --replacefiles
in needed for an install. 



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] 31+ messages in thread
* RE: SELinux RPM Version
@ 2002-04-25 14:14 Westerman, Mark
  0 siblings, 0 replies; 31+ messages in thread
From: Westerman, Mark @ 2002-04-25 14:14 UTC (permalink / raw)
  To: 'Russell Coker', Westerman, Mark, 'Reino Wallin'; +Cc: SELinux

On Thursday, April 25, 2002 8:51 AM, Russell Coker wrote:

> On Thu, 25 Apr 2002 14:48, Westerman, Mark wrote:
> > In the Filesystem Hierarchy Standard (FHS) document for the
> > Linux Standard Base.
> >
> > "Any program or package which contains or requires data the doesn't
> > need to modified should store that data in /usr/share. "
> >
> > the doc subdirectory if for "Miscellaneous documentation"
> 
> IMHO that means that /usr/share/selinux is better than 
> /usr/share/doc/selinux 
> for the sample policy files.
> 

While it is true that the policy do not contain any comments per say,
the fact that the examples show you an "example policy" in 
itself is documentation. I have use the term 
self documentation code. 

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] 31+ messages in thread
* RE: SELinux RPM Version
@ 2002-04-25 12:48 Westerman, Mark
  2002-04-25 13:51 ` Russell Coker
  0 siblings, 1 reply; 31+ messages in thread
From: Westerman, Mark @ 2002-04-25 12:48 UTC (permalink / raw)
  To: 'Reino Wallin', Russell Coker; +Cc: Westerman, Mark, SELinux

In the Filesystem Hierarchy Standard (FHS) document for the 
Linux Standard Base.

"Any program or package which contains or requires data the doesn't
need to modified should store that data in /usr/share. "

the doc subdirectory if for "Miscellaneous documentation"

I do not consider the examples/policy to be required 
by the selinux package. I look at the example
policy as being documentation. That is why
I will be keeping the
/usr/share/doc/selinux/example/.......
Directory Structure.

The /etc/selinux/policy directory is created 
and can be modified. 

This data in /usr/share is for read-only. That is
why a symbolic link is not created. 

I will keep with the Linux Standard Base
Filesystem Hierarchy Standard and
keep.

/usr/share/doc/seliunx 
directory structure.

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] 31+ messages in thread
* RE: SELinux RPM Version
@ 2002-04-24 12:42 Westerman, Mark
  2002-04-24 13:00 ` Stephen Smalley
  0 siblings, 1 reply; 31+ messages in thread
From: Westerman, Mark @ 2002-04-24 12:42 UTC (permalink / raw)
  To: 'Stephen Smalley', Reino Wallin; +Cc: Westerman, Mark, SELinux


On Wednesday, April 24, 2002 7:37 AM, Stephen Smalley wrote:

> The file contexts configuration has been moved under the policy directory,
> within a subdirectory named file_contexts, and the Makefile rules for the
> policy and relabeling have been merged into a single policy/Makefile.  The
> setfiles directory in the source tree now only contains the setfiles
> program sources along with a Makefile to build and install the
> setfiles program when SELinux is installed, and this step 
> occurs prior to running 'make relabel' in the policy directory.
> 
I have been palnning to ask this, since the file_contexts have been
move back to the policy directory, did you create a setfiles directory
or just move the file_contexts to the policy directory ?

I move the file_contexts to the policy directory and created an
entry into the Makefile call relabelfs  'make relabelfs' to 
relabel the file system.


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] 31+ messages in thread
* RE: SELinux RPM Version
@ 2002-04-24 12:31 Westerman, Mark
  0 siblings, 0 replies; 31+ messages in thread
From: Westerman, Mark @ 2002-04-24 12:31 UTC (permalink / raw)
  To: 'Russell Coker', Westerman, Mark, 'Reino Wallin'; +Cc: SELinux

On Wednesday, April 24, 2002 7:18 AM, Russell Coker wrote

> On Tue, 23 Apr 2002 19:44, Westerman, Mark wrote:
> > > According to the recent discussions, isn't
> > > /usr/share/selinux/policy/default
> > > the correct install path for the example policy?
> 
> That is the path used by my Debian packages.
> 
> > After much discussion on this subject it was decided
> > that the example policy resideds in
> >
> > /usr/share/doc/selinux/examples/policy
> 
> On the 12th of April Howard Holm convinced me to use 
> /usr/share/selinux/policy as the old 
> /usr/share/doc/selinux/examples/policy 
> directory that I (and only I) had been using was inconveniantly long.
> 
> I changed my packages that day and don't plan to change them back.
> 
Your orginal was corecct the /usr/share/doc/<package> is
90% of the packages put there examples. The /usr/share/<package>
is where most packages put information for packages to run.

I will keep  /usr/share/doc/selinux/examples/policy 
for the examples policies

I have also added /usr/share/selinux
for extra program such as the newrules.pl
that was posted to the list awhile back. 

By move the examples it confuses the extra programs
I might give out with the package.


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] 31+ messages in thread
* RE: SELinux RPM Version
@ 2002-04-23 17:44 Westerman, Mark
  2002-04-23 20:25 ` Reino Wallin
  2002-04-24 12:17 ` Russell Coker
  0 siblings, 2 replies; 31+ messages in thread
From: Westerman, Mark @ 2002-04-23 17:44 UTC (permalink / raw)
  To: 'Reino Wallin', Westerman, Mark; +Cc: SELinux


On Tuesday, April 23, 2002 11:39 AM, Reino Wallin wrote:
> > 
> > Current Configuration.
> > 
> > /etc/selinux/policy	The main policy directory 
> > If the directory does not exist then the rpm 
> > packages will create it and install example policy files.
> > 
> > /etc/selinux/setfiles	Same for the policy directory
> > 
> > The example policy is installed
> > /usr/share/doc/selinux/examples/policy
> > 
> According to the recent discussions, isn't  
> /usr/share/selinux/policy/default
> the correct install path for the example policy?

After much discussion on this subject it was decided 
that the example policy resideds in

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

The real policy

/etc/selinux/policy

The rpm verions will create and populate 
/etc/selinux/policy 
if it does not exist.

Policy maker should not touch 
/etc/selinux/policy 
in a package install. My plan is to 
create a script that the security 
administrator can run to install 
a new policy.

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] 31+ messages in thread
* RE: SELinux RPM Version
@ 2002-04-23 12:24 Westerman, Mark
  2002-04-23 12:39 ` Russell Coker
  0 siblings, 1 reply; 31+ messages in thread
From: Westerman, Mark @ 2002-04-23 12:24 UTC (permalink / raw)
  To: 'Russell Coker', Westerman, Mark, 'Howard Holm',
	SELinux


On Monday, April 22, 2002 4:38 PM Russell Coker wrote:

> On Mon, 22 Apr 2002 14:40, Westerman, Mark wrote:
> > Current SELinux package
> > 	selinux-<kernel version>-<NSA Release number>
> > 	Current planed release:
> > 		selinux-2.4.18-2002031409.i386.rpm
> > 		selinux-dev-2.4.18-2002031409.i838.rpm
> 
> Why have the kernel version in the package name?  The NSA is  only making 
> releases for the latest kernel.  I've backported a couple of  the changes
to 
> an older kernel, but AFAIK no-one else is doing so.

While it is true that the NSA is only making releases for the latest kernel
we might need in the future the older version. A user might not want to
upgrade there kernel version. If is not to hard to keep the kernel version
I think it just adds to less confusion.

> Also the relevant thing is not the kernel version but the 
> policy version.  
> 
> What we need to eventually do is split checkpolicy out into a 
> separate package so we can have multiple versions installed, then we 
> need to have the ability to compile multiple versions and load the version

> that matches the  kernel (how do we determine the policy version in the
running 
> kernel?).
> 
> Maybe the load_policy program should be able to look at a  directory full
of 
> policy files and load the one that matches the kernel policy version?
> 
> > If future releases of selinux I think we should sub-divided into
> > more packages
> > 	selinux-kernel-<kernel version>-<NSA Release number>
> > 	selinux-policy-<version number>-<release>
> > 	selinxu-utils-<version number>-<release>
> > 		To include newrole, run_init and ......
> > 		Or a separate rpm for utility ?
> 
> Why split the sample policy from the utilities?  Why would 
> you use one 
> without the other?
>

There might be different verions of a policy. Such as a policy
for just bind (i.e. a DNS server only). If we have package for
policy then maybe different policies will be built. 
  

--
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] 31+ messages in thread
* RE: SELinux RPM Version
@ 2002-04-22 12:40 Westerman, Mark
  2002-04-22 21:37 ` Russell Coker
  0 siblings, 1 reply; 31+ messages in thread
From: Westerman, Mark @ 2002-04-22 12:40 UTC (permalink / raw)
  To: 'Howard Holm', SELinux

On Friday, April 19, 2002 6:08 PM, Howard Holm wrote:


> That is excellent news.  I think that will make things a lot easier
> for many people.  Do you have a plan for "naming" the release?
> SELinux is a complicated case since there are source/RPM/deb
> releases for the parts of SELinux (e.g., fileutils) which may
> need to be different for different "base" distributions (e.g.,
> RedHat 7.1, Red Hat 7.3) and which may have both stable and
> developmental kernel versions.  The best I've been able to
> come up with so far (and I'm not very happy with it so I hope
> you've come up with something better) is to name "Packages" in
> the SourceForge, not RPM sense, something like:
> 
> Red Hat 7.2 SELinux Stable
> Red Hat 7.2 SELinux Developer
> Debian Woody SELinux Stable
> Debian Woody SELinux Developer
> 
Current SELinux package
	selinux-<kernel version>-<NSA Release number>
	Current planed release:
		selinux-2.4.18-2002031409.i386.rpm
		selinux-dev-2.4.18-2002031409.i838.rpm
	This package contains all Selinux programs
	such as the policy files, newrole, and setfiles.
	Where dev is for development mode kernel.

The modified utilities are in a separate package.
	fileutils-selinux-4.1-4.i386.rpm

If future releases of selinux I think we should sub-divided into
more packages
	selinux-kernel-<kernel version>-<NSA Release number>
	selinux-policy-<version number>-<release>
	selinxu-utils-<version number>-<release>
		To include newrole, run_init and ......
		Or a separate rpm for utility ?

For the policy maker
	selinux-policy-<policy name>-<version number>-<release>

> I think if you use both Provides: fileutils-4.1-4 and
> Obsoletes: fileutils-4.1-4 you don't need to --replacefiles
> and fileutils-4.2 won't automatically upgrade (you'll have
> to use a fileutils-selinux-4.2 or a fileutils-4.2 which
> obsoletes fileutils-selinux).  At least that's how I read
> the CHANGES file and dependencies files in /usr/share/doc/rpm-4.0.3
> (look at 2.4.7 -> 2.4.8 in CHANGES and later.)  Note that I
> have not tested this so I could be wrong about the effect.

I am going to add the Obsoletes, if it works, the to rpms.

Currently there is a question if any package should rebuild the 
policy. The current rpm I am building will only build a policy
if /etc/selinux/policy does not exist. It created it and installs
the example policy. Other wise if /etc/selinux/policy exist the
install will not touch the policy.



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] 31+ messages in thread
* SELinux RPM Version
@ 2002-04-19 20:26 Westerman, Mark
  2002-04-19 22:36 ` Russell Coker
                   ` (2 more replies)
  0 siblings, 3 replies; 31+ messages in thread
From: Westerman, Mark @ 2002-04-19 20:26 UTC (permalink / raw)
  To: SELinux

I expect to release a beta version to sourceforge 
of an rpm package of SELinux next week.

Current Configuration.

/etc/selinux/policy	The main policy directory 
If the directory does not exist then the rpm 
packages will create it and install example policy files.

/etc/selinux/setfiles	Same for the policy directory

The example policy is installed
/usr/share/doc/selinux/examples/policy


Flask files
/usr/lib/flask

Libsecure
/usr/lib/libsecure.a

All the added programs for selinux such as newrole
will be install into /usr/bin

The include directory
/usr/include/selinux

All packages such as 
fileutils-4.1-4

have been renamed to

fileutils-selinux-4.1-4

This packages provides: fileutils

The provides is so other rpms can 
meet requirements. 

All packages have been build for original spec files
with the selinux patch added. So the will install into
normal locations. 

the --replacefiles option must be used when installing.

Comments or suggestions


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] 31+ messages in thread

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

Thread overview: 31+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-22 12:19 SELinux RPM Version Westerman, Mark
2002-04-22 13:54 ` Tom
2002-04-22 21:15 ` Russell Coker
2002-04-22 22:06 ` Russell Coker
2002-04-26 10:19 ` Russell Coker
  -- strict thread matches above, loose matches on Subject: below --
2002-04-25 14:14 Westerman, Mark
2002-04-25 12:48 Westerman, Mark
2002-04-25 13:51 ` Russell Coker
2002-04-25 14:38   ` Reino Wallin
2002-04-25 20:10   ` John Summerfield
2002-04-24 12:42 Westerman, Mark
2002-04-24 13:00 ` Stephen Smalley
2002-04-24 12:31 Westerman, Mark
2002-04-23 17:44 Westerman, Mark
2002-04-23 20:25 ` Reino Wallin
2002-04-24 12:36   ` Stephen Smalley
2002-04-24 12:17 ` Russell Coker
2002-04-24 22:38   ` Reino Wallin
2002-04-24 23:45     ` Russell Coker
2002-04-23 12:24 Westerman, Mark
2002-04-23 12:39 ` Russell Coker
2002-04-22 12:40 Westerman, Mark
2002-04-22 21:37 ` Russell Coker
2002-04-23  0:03   ` Howard Holm
2002-04-23  8:42     ` Dale Amon
2002-04-19 20:26 Westerman, Mark
2002-04-19 22:36 ` Russell Coker
2002-04-19 23:07 ` Howard Holm
2002-04-20  9:51   ` Russell Coker
2002-04-23 16:39 ` Reino Wallin
2002-04-24 12:21   ` 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.