All of lore.kernel.org
 help / color / mirror / Atom feed
* RHEL 3 policy and policy-sources RPMs
@ 2004-01-17 21:14 Bill McCarty
  2004-01-19  3:07 ` Daniel J Walsh
  0 siblings, 1 reply; 3+ messages in thread
From: Bill McCarty @ 2004-01-17 21:14 UTC (permalink / raw)
  To: SE Linux

Hi all,

(1) I'm setting up another SELinux host on RHEL3, in addition to the one I 
successfully set up a few days back. I downloaded RPMs from 
people.redhat.com, but find that prelink.te and several other TE files 
(rpm.te, slocate.te) have syntax errors that prevent me from successfully 
making the policy. For instance:

ERROR 'syntax error' at token '-' on line 102125:


> allow prelink_t {root_dir_type file_type -shadow_t} :{ file dir lnk_file
> } { getattr read}; /usr/bin/checkpolicy:  error(s) encountered while
> parsing configuration

It appears that an unwanted dash has been introduced. Unfortunately, after 
deleting the offending dashes, I ran into other problems:

> security:  3 users, 5 roles, 1066 types
> security:  30 classes, 134765 rules
> assertion on line 130825 violated by allow rpm_t shadow_t:file {
> relabelfrom relabelto }; assertion on line 130824 violated by allow
> prelink_t shadow_t:file { read }; assertion on line 130824 violated by
> allow rpm_t shadow_t:file { relabelfrom relabelto }; assertion on line
> 130824 violated by allow locate_t shadow_t:file { read }; make: ***
> [/etc/security/selinux/policy.15] Error 1

As a temporary expedient, I changed the relevant lines of assert.te to:

neverallow ~{ auth auth_write } shadow_t:file ~{ getattr read relabelfrom 
relabelto };
neverallow ~auth_write shadow_t:file ~{ read getattr lock ioctl relabelfrom 
relabelto};

After these changes, the policy compiles. I don't yet know how well it 
works.

Obviously, I understand that this policy is under active development and I 
don't want to seem to whine about such problems. But, are there better or 
worse times for users to work with it <g>? If so, I'd like to get in sync.

(2) Also, I'm curious why some policy source files are found in both the 
policy and policy-sources RPMs.

Thanks, in any case, to Daniel and other who're working on this policy!

Cheers,

---------------------------------------------------
Bill McCarty

--
This message was distributed to subscribers of the selinux mailing 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] 3+ messages in thread

* Re: RHEL 3 policy and policy-sources RPMs
  2004-01-17 21:14 RHEL 3 policy and policy-sources RPMs Bill McCarty
@ 2004-01-19  3:07 ` Daniel J Walsh
  2004-01-19  3:12   ` Bill McCarty
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel J Walsh @ 2004-01-19  3:07 UTC (permalink / raw)
  To: Bill McCarty; +Cc: SE Linux

Bill McCarty wrote:

> Hi all,
>
> (1) I'm setting up another SELinux host on RHEL3, in addition to the 
> one I successfully set up a few days back. I downloaded RPMs from 
> people.redhat.com, but find that prelink.te and several other TE files 
> (rpm.te, slocate.te) have syntax errors that prevent me from 
> successfully making the policy. For instance:
>
> ERROR 'syntax error' at token '-' on line 102125:

Sorry about that a couple of packages had fallen behind on the RHEL3 
tree.  You need to upgrade your version of Check Policy.  The "-XYZ" 
syntax has been added to say get everything in this category except XYZ.

>
>
>> allow prelink_t {root_dir_type file_type -shadow_t} :{ file dir lnk_file
>> } { getattr read}; /usr/bin/checkpolicy:  error(s) encountered while
>> parsing configuration
>
>
> It appears that an unwanted dash has been introduced. Unfortunately, 
> after deleting the offending dashes, I ran into other problems:
>
>> security:  3 users, 5 roles, 1066 types
>> security:  30 classes, 134765 rules
>> assertion on line 130825 violated by allow rpm_t shadow_t:file {
>> relabelfrom relabelto }; assertion on line 130824 violated by allow
>> prelink_t shadow_t:file { read }; assertion on line 130824 violated by
>> allow rpm_t shadow_t:file { relabelfrom relabelto }; assertion on line
>> 130824 violated by allow locate_t shadow_t:file { read }; make: ***
>> [/etc/security/selinux/policy.15] Error 1
>
>
> As a temporary expedient, I changed the relevant lines of assert.te to:
>
> neverallow ~{ auth auth_write } shadow_t:file ~{ getattr read 
> relabelfrom relabelto };
> neverallow ~auth_write shadow_t:file ~{ read getattr lock ioctl 
> relabelfrom relabelto};
>
> After these changes, the policy compiles. I don't yet know how well it 
> works.
>
> Obviously, I understand that this policy is under active development 
> and I don't want to seem to whine about such problems. But, are there 
> better or worse times for users to work with it <g>? If so, I'd like 
> to get in sync.
>
I try to keep everything in sync, and most of the active work is being 
done for Fedora Core.  But I will try to keep everything in sync on 
RHEL3 in the future.

> (2) Also, I'm curious why some policy source files are found in both 
> the policy and policy-sources RPMs.
>
I didn't know that I will look.

> Thanks, in any case, to Daniel and other who're working on this policy!
>
> Cheers,
>
> ---------------------------------------------------
> Bill McCarty
>
> -- 
> This message was distributed to subscribers of the selinux mailing 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.


--
This message was distributed to subscribers of the selinux mailing 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] 3+ messages in thread

* Re: RHEL 3 policy and policy-sources RPMs
  2004-01-19  3:07 ` Daniel J Walsh
@ 2004-01-19  3:12   ` Bill McCarty
  0 siblings, 0 replies; 3+ messages in thread
From: Bill McCarty @ 2004-01-19  3:12 UTC (permalink / raw)
  To: Daniel J Walsh; +Cc: SE Linux

Hi Daniel,

Thanks for your timely and helpful response! RHEL with SELinux rocks!

Cheers,

---------------------------------------------------
Bill McCarty

--
This message was distributed to subscribers of the selinux mailing 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] 3+ messages in thread

end of thread, other threads:[~2004-01-19  3:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-17 21:14 RHEL 3 policy and policy-sources RPMs Bill McCarty
2004-01-19  3:07 ` Daniel J Walsh
2004-01-19  3:12   ` Bill McCarty

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.