All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luke Kenneth Casson Leighton <lkcl@lkcl.net>
To: SE-Linux <selinux@tycho.nsa.gov>
Subject: fuse - how to "mirror" user_t file access rights?
Date: Mon, 27 Sep 2004 02:21:08 +0100	[thread overview]
Message-ID: <20040927012108.GL28076@lkcl.net> (raw)

hi,

does anyone have any ideas on how to mirror the exact same file
permissions as a user_t or sysadm_t or staff_t... in another domain?

i'm writing a policy for a fuse program (fusexmp) and yes i'm also
modifying the fuse kernel module to support xattrs.

the issue is as follows:

- a macro similar to mount_domain called fusexmp_domain creates a domain
  $2_fusexmp_t from its argument e.g. user -> user_fusexmp_t.

- user_t running the fusexmp_exec_t program causes a domain_auto_trans
  into user_fusexmp_t.

- any user file access on, say /Documents/foo will result in
  /usr/bin/fusexmp doing a corresponding file access on
  /home/yourusername/foo...

  ... but as explained above, this access is done in the
  user_fusexmp_t domain

i found the privhome domain thing but russell said "no way!"
because privhome allows access to *alll* user domains.

does anyone know if there is a half-way-house that i can use,
which will grant access to just the given user's files and
directories, as if it was that user doing the access?

ta,

l.

--
--
Truth, honesty and respect are rare commodities that all spring from
the same well: Love.  If you love yourself and everyone and everything
around you, funnily and coincidentally enough, life gets a lot better.
--
<a href="http://lkcl.net">      lkcl.net      </a> <br />
<a href="mailto:lkcl@lkcl.net"> lkcl@lkcl.net </a> <br />


--
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:[~2004-09-27  1:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-27  1:21 Luke Kenneth Casson Leighton [this message]
2004-09-28 15:21 ` fuse - how to "mirror" user_t file access rights? Russell Coker

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=20040927012108.GL28076@lkcl.net \
    --to=lkcl@lkcl.net \
    --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.