All of lore.kernel.org
 help / color / mirror / Atom feed
From: Devin Carraway <selinux-list@devin.com>
To: Daniel J Walsh <dwalsh@redhat.com>
Cc: selinux@tycho.nsa.gov
Subject: Re: [refpolicy] policy & patch for bitlbee
Date: Sat, 25 Aug 2007 14:00:36 -0700	[thread overview]
Message-ID: <20070825210036.GN28833@atlantic.devin.com> (raw)
In-Reply-To: <46D00510.80608@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 1299 bytes --]

On Sat, Aug 25, 2007 at 06:31:44AM -0400, Daniel J Walsh wrote:
> First comment, if you have files directories that the confined domain
> does not need to write, and the data within is not secret,  IE You dont
> want other domains to be able to read it.  DO NOT create a type.  Just
> leave the files the default type, and use the interface to allow you
> domain to read it.

Hmm, okay.  bitlbee_share_t I put in not because /usr/share/bitlbee contains
anything sensitive (just one helpfile, at the moment), but because it has no
need to read any files of type usr_t, so by making a type for it I could avoid
granting anything on usr_t:file (usr_t:dir has r/o perms implied by
libs_legacy_use_shared_libs()).  Should I go ahead and let it read usr_t:file
for sake of avoiding the extra type, trading off a somewhat broader scope of
access for the domain?

> type bitlbee_conf_t;
> files_config_file(bitlbee_conf_t)

There's a single sensitive piece of data here, namely an (optional) password
to connect to the bitlbee server -- roughly analogous in policy terms to an
Apache htpasswd/htdigest file.

Thanks for the feedback!


-- 
Devin  \ aqua(at)devin.com, IRC:Requiem; http://www.devin.com
Carraway \ 1024D/E9ABFCD2: 13E7 199E DD1E 65F0 8905 2E43 5395 CA0D E9AB FCD2

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2007-08-25 21:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-19  4:57 [refpolicy] policy & patch for bitlbee Devin Carraway
2007-08-25 10:31 ` Daniel J Walsh
2007-08-25 21:00   ` Devin Carraway [this message]
2007-08-26 22:45   ` Devin Carraway
2007-09-17 14:44     ` Christopher J. PeBenito

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=20070825210036.GN28833@atlantic.devin.com \
    --to=selinux-list@devin.com \
    --cc=dwalsh@redhat.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.