All of lore.kernel.org
 help / color / mirror / Atom feed
From: Diyab <diyab@diyab.net>
To: Dale Amon <amon@vnl.com>
Cc: Russell Coker <russell@coker.com.au>, SE Linux <selinux@tycho.nsa.gov>
Subject: Re: default policy package
Date: Mon, 03 Nov 2003 08:38:40 -0500	[thread overview]
Message-ID: <3FA65A60.3010802@diyab.net> (raw)
In-Reply-To: <20031103114353.GC13273@vnl.com>

Dale Amon wrote:
> Looks like X windows has really stuck it's tentacles
> into the policy. I can't compile one without it. Something
> in the macros that I haven't tracked down yet:
> 
> ERROR: unknown type initrc_xserver_tmp_t' at token ':' on line 6198:
> allow sysadm_uml_t initrc_xserver_tmp_t:dir search;
> 
> so I removed uml.te, which I didn't need anyway. Next run
> I've now got:
> 
> ERROR: unknown type sysadm_xserver_t' at token ':' on line 7525:
> allow sysadm_xserver_t xserver_tmpfile:dir { read getattr lock search ioctl add name remove_name write };
> 
> This is just some examples. I've been fighting this
> all morning without finding a set that works without 
> any X. (Hardly need X for a machine that normally doesn't
> even have a terminal on it, and when it does it's an old
> dumb b&w character only glass tty)
> 
> I haven't specifically seen where the problem is coming
> from yet: everything seems to have ifdef's around it
> on startx.te or xserver.te but I've not gone through
> every file.
> 
> I'll keep at it, but suggestions are welcome. 

I ran into a similar problem with postgresql.te which contains a 
can_exec statement with dpkg_exec_t that does not have an ifdef around 
it.  So unless you include dpkg.te you get an error attempting to 
compile the policy.  Easiest thing to do from what I've found is to grep 
the everything in domains/program for the context that is giving the error.

Timothy,

-- 
I put instant coffee in a microwave and almost went back in time.
		-- Steven Wright


--
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.

  reply	other threads:[~2003-11-03 13:38 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-03 11:43 default policy package Dale Amon
2003-11-03 13:38 ` Diyab [this message]
     [not found]   ` <200311040140.04077.russell@coker.com.au>
2003-11-03 15:05     ` Diyab
2003-11-03 15:29     ` Dale Amon
2003-11-03 16:18       ` Stephen Smalley
     [not found]         ` <200311040348.39876.russell@coker.com.au>
2003-11-03 19:27           ` Colin Walters
2003-11-03 20:04             ` Howard Holm
2003-11-03 20:11   ` Howard Holm
     [not found] ` <200311040115.57564.russell@coker.com.au>
2003-11-03 15:27   ` Dale Amon
2003-11-03 16:15     ` Stephen Smalley
2003-11-03 17:37       ` Dale Amon
2003-11-04 17:54         ` Dale Amon

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=3FA65A60.3010802@diyab.net \
    --to=diyab@diyab.net \
    --cc=amon@vnl.com \
    --cc=russell@coker.com.au \
    --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.