* Mix and Match 2: relabel problems
@ 2002-03-24 15:45 Dale Amon
2002-03-25 0:31 ` Russell Coker
0 siblings, 1 reply; 7+ messages in thread
From: Dale Amon @ 2002-03-24 15:45 UTC (permalink / raw)
To: Russell Coker; +Cc: SE Linux
Okay, getting close. I rebooted into selinux after remembering to
do the make relable this time. Then I did Russell's policy make install,
and it works under an selinux kernel as I surmised it would.
However I'm still missing something in his policy, because when
I relabel after the boot:
> make verbose
./setfiles -v file_contexts `mount | awk '/ext[23]/{print $3}'`
./setfiles: Running on a SELinux kernel, using new system calls
./setfiles: read 352 specifications
./setfiles: invalid context system_u:object_r:slapd_db_t on line number 65
./setfiles: invalid context system_u:object_r:slapd_replog_t on line number 66
./setfiles: invalid context system_u:object_r:slapd_exec_t on line number 401
make: *** [verbose] Error 1
I'm using the policy/ from Russell's selinux_2002031409-2_i386.deb dist in
the lsm-2.4-selinux-2002031409.tgz base release. With minor twiddles of
my own to make things work together.
Any suggestions?
--
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] 7+ messages in thread
* Re: Mix and Match 2: relabel problems
2002-03-24 15:45 Mix and Match 2: relabel problems Dale Amon
@ 2002-03-25 0:31 ` Russell Coker
2002-03-25 1:57 ` Dale Amon
0 siblings, 1 reply; 7+ messages in thread
From: Russell Coker @ 2002-03-25 0:31 UTC (permalink / raw)
To: Dale Amon; +Cc: SE Linux
On Sun, 24 Mar 2002 16:45, Dale Amon wrote:
> However I'm still missing something in his policy, because when
>
> I relabel after the boot:
> > make verbose
>
> ./setfiles -v file_contexts `mount | awk '/ext[23]/{print $3}'`
> ./setfiles: Running on a SELinux kernel, using new system calls
> ./setfiles: read 352 specifications
> ./setfiles: invalid context system_u:object_r:slapd_db_t on line number 65
> ./setfiles: invalid context system_u:object_r:slapd_replog_t on line
> number 66 ./setfiles: invalid context system_u:object_r:slapd_exec_t on
> line number 401 make: *** [verbose] Error 1
>
> I'm using the policy/ from Russell's selinux_2002031409-2_i386.deb dist in
> the lsm-2.4-selinux-2002031409.tgz base release. With minor twiddles of
> my own to make things work together.
The -2 release wasn't complete, it had some entries in file_contexts without
a matching .te file. You can comment out those entries, use the slapd.te
file I mailed here, or wait for a -3 release (soon I hope).
--
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] 7+ messages in thread
* Re: Mix and Match 2: relabel problems
2002-03-25 0:31 ` Russell Coker
@ 2002-03-25 1:57 ` Dale Amon
2002-03-25 11:13 ` Russell Coker
0 siblings, 1 reply; 7+ messages in thread
From: Dale Amon @ 2002-03-25 1:57 UTC (permalink / raw)
To: Russell Coker; +Cc: SE Linux
On Mon, Mar 25, 2002 at 01:31:51AM +0100, Russell Coker wrote:
> The -2 release wasn't complete, it had some entries in file_contexts without
> a matching .te file. You can comment out those entries, use the slapd.te
> file I mailed here, or wait for a -3 release (soon I hope).
Hmmm, can't seem to find it with a grep of the mailq. Guess
I'll have to wait or do the comment thing.
--
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] 7+ messages in thread
* Re: Mix and Match 2: relabel problems
2002-03-25 1:57 ` Dale Amon
@ 2002-03-25 11:13 ` Russell Coker
2002-03-25 13:49 ` Dale Amon
2002-03-25 18:44 ` Stephen Smalley
0 siblings, 2 replies; 7+ messages in thread
From: Russell Coker @ 2002-03-25 11:13 UTC (permalink / raw)
To: Dale Amon; +Cc: SE Linux
On Mon, 25 Mar 2002 02:57, Dale Amon wrote:
> On Mon, Mar 25, 2002 at 01:31:51AM +0100, Russell Coker wrote:
> > The -2 release wasn't complete, it had some entries in file_contexts
> > without a matching .te file. You can comment out those entries, use the
> > slapd.te file I mailed here, or wait for a -3 release (soon I hope).
>
> Hmmm, can't seem to find it with a grep of the mailq. Guess
> I'll have to wait or do the comment thing.
OK. I've just put a new version of my selinux base packages online. I've
added new policy and made some changes to the devfsd shared object (which
also requires a new version of the devfsd package for Debian so I've put it
in the same directory).
One noteworthy thing I've done with the devfsd shared object is made any
context that doesn't contain a ':' have "system_u:object_r:" be prepended.
I am wondering whether it would make sense to do the same for file_contexts,
putting in system_u:object_r seems to be just needless typing.
--
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] 7+ messages in thread
* Re: Mix and Match 2: relabel problems
2002-03-25 11:13 ` Russell Coker
@ 2002-03-25 13:49 ` Dale Amon
2002-03-25 15:16 ` Dale Amon
2002-03-25 18:44 ` Stephen Smalley
1 sibling, 1 reply; 7+ messages in thread
From: Dale Amon @ 2002-03-25 13:49 UTC (permalink / raw)
To: Russell Coker; +Cc: SE Linux
On Mon, Mar 25, 2002 at 12:13:19PM +0100, Russell Coker wrote:
> OK. I've just put a new version of my selinux base packages online. I've
> added new policy and made some changes to the devfsd shared object (which
> also requires a new version of the devfsd package for Debian so I've put it
> in the same directory).
Got it, updated my merged set, and it seems to work now. I have to wait
for a kernel build to finish up (more beta testing for HVR) before I
can reboot and get a new list of avc error messages though :-)
--
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] 7+ messages in thread
* Re: Mix and Match 2: relabel problems
2002-03-25 13:49 ` Dale Amon
@ 2002-03-25 15:16 ` Dale Amon
0 siblings, 0 replies; 7+ messages in thread
From: Dale Amon @ 2002-03-25 15:16 UTC (permalink / raw)
To: Russell Coker; +Cc: SE Linux
On Mon, Mar 25, 2002 at 01:49:40PM +0000, Dale Amon wrote:
> On Mon, Mar 25, 2002 at 12:13:19PM +0100, Russell Coker wrote:
> > OK. I've just put a new version of my selinux base packages online. I've
> > added new policy and made some changes to the devfsd shared object (which
> > also requires a new version of the devfsd package for Debian so I've put it
> > in the same directory).
Okay, booted and looks good... other than my own crop of avc warnings. Only
about a page full though :-)
--
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] 7+ messages in thread
* Re: Mix and Match 2: relabel problems
2002-03-25 11:13 ` Russell Coker
2002-03-25 13:49 ` Dale Amon
@ 2002-03-25 18:44 ` Stephen Smalley
1 sibling, 0 replies; 7+ messages in thread
From: Stephen Smalley @ 2002-03-25 18:44 UTC (permalink / raw)
To: Russell Coker; +Cc: Dale Amon, SE Linux
On Mon, 25 Mar 2002, Russell Coker wrote:
> One noteworthy thing I've done with the devfsd shared object is made any
> context that doesn't contain a ':' have "system_u:object_r:" be prepended.
>
> I am wondering whether it would make sense to do the same for file_contexts,
> putting in system_u:object_r seems to be just needless typing.
We'd like to minimize the set of code that has any awareness of the
internal format and meaning of the security context, so that people can
easily create their own security servers with their own security models
with no changes to the rest of the kernel and only minimal changes to
userspace.
--
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2002-03-25 18:44 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-24 15:45 Mix and Match 2: relabel problems Dale Amon
2002-03-25 0:31 ` Russell Coker
2002-03-25 1:57 ` Dale Amon
2002-03-25 11:13 ` Russell Coker
2002-03-25 13:49 ` Dale Amon
2002-03-25 15:16 ` Dale Amon
2002-03-25 18:44 ` Stephen Smalley
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.