From: korkishko Tymur <k.tymur@samsung.com>
To: SELinux@tycho.nsa.gov, k.tymur@samsung.com
Subject: Genfscon and cramfs issue
Date: Wed, 15 Oct 2008 01:50:36 +0000 (GMT) [thread overview]
Message-ID: <26901264.215431224035436346.JavaMail.weblogic@epml03> (raw)
I have discovered an issue with using genfscon for labeling cramfs filesystem.
I have Linux kernel 2.6.26 with a patch from NSA that allows genfscon support of security contexts for directories/files (others than/ ).
I use genfscon to label files/directories on cramfsfilesystem(read-only filesystem) that does not support xattr.
Cramfs filesystem has following behavior: for two files with different names but with the same file content it assigns single inode.
Example:
genfscon cramfs /usr/file_one user_u:system_r:file_one_t
genfscon cramfs /usr/file_two user_u:system_r:file_two_t
file-one and file-two have the same content (e.g. Hello world).
file-one and file-two share the same inode on cramfs.
As a result, two files might have the _same_ security context - either ...:file_one_t or ...:file_two_t.
If file /usr/file_one is accessed first, user_u:system_r:file_one_t is used for both files.
If file /usr/file_two is accessed first, user_u:system_r:file_two_t is used for both files.
Any ideas how to fix/deal with that issue are welcomed.
---
Tymur Korkishko
Samsung Electronics
--
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.
next reply other threads:[~2008-10-15 1:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-15 1:50 korkishko Tymur [this message]
2008-10-15 12:49 ` Genfscon and cramfs issue Stephen Smalley
2008-10-15 12:58 ` Stephen Smalley
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=26901264.215431224035436346.JavaMail.weblogic@epml03 \
--to=k.tymur@samsung.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.