public inbox for linux-s390@vger.kernel.org
 help / color / mirror / Atom feed
From: Sven Schnelle <svens@linux.ibm.com>
To: Paul Moore <paul@paul-moore.com>
Cc: rentianyue@tj.kylinos.cn,
	Stephen Smalley <stephen.smalley.work@gmail.com>,
	Eric Paris <eparis@parisplace.org>,
	Andreas Gruenbacher <agruenba@redhat.com>,
	yangzhao@kylinos.cn, selinux@vger.kernel.org,
	Tianyue Ren <rentianyue@kylinos.cn>,
	linux-s390@vger.kernel.org, hca@linux.ibm.com,
	borntraeger@de.ibm.com
Subject: Re: [PATCH v3 1/1] selinux: fix error initialization in inode_doinit_with_dentry()
Date: Wed, 04 Nov 2020 08:01:46 +0100	[thread overview]
Message-ID: <yt9dpn4twqp1.fsf@linux.ibm.com> (raw)
In-Reply-To: <CAHC9VhRxm=YR1yBy8fnWPXRZ48pq4MA4b26YAtqAJORJZD61wg@mail.gmail.com> (Paul Moore's message of "Tue, 3 Nov 2020 21:42:35 -0500")

Hi Paul,

Paul Moore <paul@paul-moore.com> writes:

> On Tue, Nov 3, 2020 at 2:02 PM Sven Schnelle <svens@linux.ibm.com> wrote:
>> Thanks for the patch. Unfortunately it doesn't seem to change anything
>> for me. I can take a look into this tomorrow, but i don't know much
>> about the internals of selinux, so i'm not sure whether i'm of much help.
>
> I'm sorry that patch didn't work out.  I just spent some more time
> looking at the code+patch and the only other thing that I can see is
> that if we mark the isec invalid, we don't bother setting the
> isec->sid value to whatever default we may have already found.  In a
> perfect world this shouldn't matter, but if for whatever reason the
> kernel can't revalidate the inode's label when it tries later it will
> fallback to that default isec->sid.
>
> I'm sorry to ask this again, but would you be able to test the attached patch?

This patch fixes the issue. So it looks like your assumption is right.

Thanks
Sven

  reply	other threads:[~2020-11-04  7:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAHC9VhQTp3Rc_7zM661Rzur0XSuWRWKJJg=CwLPAQo5ABRpS-w@mail.gmail.com>
     [not found] ` <20201009013630.6777-1-rentianyue@tj.kylinos.cn>
     [not found]   ` <20201009013630.6777-2-rentianyue@tj.kylinos.cn>
     [not found]     ` <CAHC9VhR2KPKN8ot9WrkjZQ08X-VPDGkXro18C5jhDEwcFH6wog@mail.gmail.com>
2020-11-03 13:13       ` [PATCH v3 1/1] selinux: fix error initialization in inode_doinit_with_dentry() Sven Schnelle
2020-11-03 17:11         ` Paul Moore
2020-11-03 19:02           ` Sven Schnelle
2020-11-04  2:42             ` Paul Moore
2020-11-04  7:01               ` Sven Schnelle [this message]
2020-11-04 20:40                 ` Paul Moore

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=yt9dpn4twqp1.fsf@linux.ibm.com \
    --to=svens@linux.ibm.com \
    --cc=agruenba@redhat.com \
    --cc=borntraeger@de.ibm.com \
    --cc=eparis@parisplace.org \
    --cc=hca@linux.ibm.com \
    --cc=linux-s390@vger.kernel.org \
    --cc=paul@paul-moore.com \
    --cc=rentianyue@kylinos.cn \
    --cc=rentianyue@tj.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox