From: Debian User <rogelio@evoworks.evoserve.com>
To: Stephen Smalley <sds@tislabs.com>
Cc: selinux@tycho.nsa.gov
Subject: Re: [patch] Re: problem with "-" in libraries
Date: Mon, 08 Jul 2002 20:38:08 +0800 [thread overview]
Message-ID: <3D2987B0.9010703@evoworks.evoserve.com> (raw)
In-Reply-To: Pine.GSO.4.33.0207080820340.19100-200000@raven
Stephen Smalley wrote:
>On Sat, 6 Jul 2002, Debian User wrote:
>
>
>
>>Im developing a policy for a cramfs based selinux system. I cant specify the
>>contexts for libraries with a "-" in the names like "libpthread-0.9.11.so".
>>Checkpolicy does not accept such names int genfs_contexts. I am trying to work
>>around this by recompiling everything using modified library names. Can the
>>checkpolicy compiler be modified to accept this names?
>>
>>
>
>The attached patch fixes the checkpolicy scanner to accept "-" in path
>tokens. This patch has also been committed to the sourceforge CVS tree.
>
>
Will apply thanks. I discovered that genfs_context are used as
prefixes. My policy worked somewhat by specifying only the names before
the dash. I was able to make my system work but this is much better.
>--
>Stephen D. Smalley, NAI Labs
>ssmalley@nai.com
>
>
>
>
>------------------------------------------------------------------------
>
>Index: module/checkpolicy/policy_scan.l
>===================================================================
>RCS file: /cvsroot/selinux/nsa/selinux/module/checkpolicy/policy_scan.l,v
>retrieving revision 1.5
>diff -u -r1.5 policy_scan.l
>--- module/checkpolicy/policy_scan.l 3 Jul 2002 20:39:47 -0000 1.5
>+++ module/checkpolicy/policy_scan.l 8 Jul 2002 12:17:16 -0000
>@@ -130,7 +130,7 @@
> T1 { return(T1); }
> t2 |
> T2 { return(T2); }
>-"/"({letter}|{digit}|_|"."|"/")* { return(PATH); }
>+"/"({letter}|{digit}|_|"."|"-"|"/")* { return(PATH); }
> {letter}({letter}|{digit}|_)* { return(IDENTIFIER); }
> {digit}{digit}* { return(NUMBER); }
> #[^\n]* { /* delete comments */ }
>
>
--
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.
prev parent reply other threads:[~2002-07-08 12:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-06 4:07 problem with "-" in libraries Debian User
2002-07-08 11:33 ` Stephen Smalley
2002-07-08 12:22 ` [patch] " Stephen Smalley
2002-07-08 12:38 ` Debian User [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3D2987B0.9010703@evoworks.evoserve.com \
--to=rogelio@evoworks.evoserve.com \
--cc=sds@tislabs.com \
--cc=selinux@tycho.nsa.gov \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.