All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel J Walsh <dwalsh@redhat.com>
To: jwcart2@epoch.ncsc.mil
Cc: "Clarkson, Mike R (US SSA)" <mike.clarkson@baesystems.com>,
	selinux@tycho.nsa.gov
Subject: Re: problem setting the security context of directories vs files
Date: Tue, 19 Jun 2007 13:21:41 -0400	[thread overview]
Message-ID: <467810A5.3090306@redhat.com> (raw)
In-Reply-To: <1182272762.2086.78.camel@moss-lions.epoch.ncsc.mil>

James Carter wrote:
> On Tue, 2007-06-19 at 09:34 -0700, Clarkson, Mike R (US SSA) wrote:
>   
>> I'm having trouble setting the security context of directories using
>> file contexts. It seems to be working fine for files, but not
>> directories.
>>
>> I have a module named import. Here is a copy of my import.fc file:
>>
>> /m2ds/import	--	gen_context(system_u:object_r:import_dir_t,s0)
>> /m2ds/import/datasources	--
>> gen_context(system_u:object_r:import_dir_t,s0)
>> /m2ds/import/stage	--
>> gen_context(system_u:object_r:import_stage_t,s0)
>> /m2ds/import/junk	--
>> gen_context(system_u:object_r:import_dir_t,s0)
>> /home/m2/SimulatedImport/bin/SimulatedImport	--
>> gen_context(system_u:object_r:import_exec_t,s0)
>> /home/m2/SimulatedImport/bin/SimulatedImport_Server	--
>> gen_context(system_u:object_r:import_exec_t,s0)
>>
>>
>>     
> Use "-d" for directories, instead of "--".
>
> The obscure options available to use are:
> -b	block
> -c	character
> -d 	directory
> -p	pipe
> -l	link
> -s	socket
> --	regular
>
>
>   
"  " matches all.
"-" followed by the first character output by 'ls -l'.

--
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:[~2007-06-19 17:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-19 16:34 problem setting the security context of directories vs files Clarkson, Mike R (US SSA)
2007-06-19 17:06 ` James Carter
2007-06-19 17:21   ` Daniel J Walsh [this message]
2007-06-19 19:17     ` Clarkson, Mike R (US SSA)
2007-06-19 19:43       ` Daniel J Walsh

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=467810A5.3090306@redhat.com \
    --to=dwalsh@redhat.com \
    --cc=jwcart2@epoch.ncsc.mil \
    --cc=mike.clarkson@baesystems.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.