From: rentianyue@tj.kylinos.cn
To: Paul Moore <paul@paul-moore.com>,
Stephen Smalley <stephen.smalley.work@gmail.com>,
Eric Paris <eparis@parisplace.org>,
Andreas Gruenbacher <agruenba@redhat.com>
Cc: yangzhao@kylinos.cn, selinux@vger.kernel.org,
Tianyue Ren <rentianyue@kylinos.cn>
Subject: [PATCH v2 0/1] selinux: fix error initialization in inode_doinit_with_dentry()
Date: Wed, 30 Sep 2020 09:31:45 +0800 [thread overview]
Message-ID: <20200930013146.48339-1-rentianyue@tj.kylinos.cn> (raw)
From: Tianyue Ren <rentianyue@kylinos.cn>
I think there is a error initialization for isec->sid when the dentry is NULL,
when we do "remount -o rw,remount ${rootmnt}" action before selinux policy loading.It's
leading kernel getting wrong security label "unlabeled_t" when the userspace access
files such as /etc/fstab.
This patch lets the label be invalid before it's initializated correctly.
v2: Modify the patch description
Tianyue Ren (1):
selinux: fix error initialization in inode_doinit_with_dentry()
security/selinux/hooks.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
--
2.28.0
next reply other threads:[~2020-09-30 1:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-30 1:31 rentianyue [this message]
-- strict thread matches above, loose matches on Subject: below --
2020-09-29 14:18 [PATCH v1 1/1] selinux: fix error initialization in inode_doinit_with_dentry() Stephen Smalley
2020-09-30 1:36 ` [PATCH v2 0/1] " rentianyue
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=20200930013146.48339-1-rentianyue@tj.kylinos.cn \
--to=rentianyue@tj.kylinos.cn \
--cc=agruenba@redhat.com \
--cc=eparis@parisplace.org \
--cc=paul@paul-moore.com \
--cc=rentianyue@kylinos.cn \
--cc=selinux@vger.kernel.org \
--cc=stephen.smalley.work@gmail.com \
--cc=yangzhao@kylinos.cn \
/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.