LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: David Howells <dhowells@redhat.com>
To: Casey Schaufler <casey@schaufler-ca.com>
Cc: dhowells@redhat.com, LKML <linux-kernel@vger.kernel.org>,
Al Viro <viro@zeniv.linux.org.uk>,
jose.bollo@iot.bzh,
Linux Security Module list
<linux-security-module@vger.kernel.org>
Subject: Re: [PATCH] Smack: Restore the smackfsdef mount option
Date: Tue, 28 May 2019 19:54:18 +0100 [thread overview]
Message-ID: <9986.1559069658@warthog.procyon.org.uk> (raw)
In-Reply-To: <43e3de52-13d7-8089-11cf-a384662401aa@schaufler-ca.com>
Casey Schaufler <casey@schaufler-ca.com> wrote:
> > Casey Schaufler <casey@schaufler-ca.com> wrote:
> >
> >>> Also, should all of these be prefixed with "smack"? So:
> >>>
> >>> fsparam_string("smackfsdef", Opt_fsdefault),
> >>> fsparam_string("smackfsfloor", Opt_fsfloor),
> >>> fsparam_string("smackfshat", Opt_fshat),
> >> No. smack_fs_parameters takes care of that.
> > It does? *Blink*.
>
> Well, something does. I can't say that I 100% understand all
> of how the new mount code handles the mount options. Y'all made
> sweeping changes, and the code works the way it used to except
> for the awkward change from smackfsdef to smackfsdefault. It
> took no small amount of head scratching and experimentation to
> convince myself that the fix I proposed was correct.
Ah... I suspect the issue is that smack_sb_eat_lsm_opts() strips the prefix
for an unconverted filesystem, but smack_fs_context_parse_param() doesn't
(which it shouldn't).
Can you try grabbing my mount-api-viro branch from:
https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git
and testing setting smack options on a tmpfs filesystem?
You might need to try modifying samples/vfs/test-fsmount.c to make it mount a
trmpfs filesystem through the new mount UAPI.
David
next prev parent reply other threads:[~2019-05-28 18:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-20 22:48 Casey Schaufler
2019-05-21 22:25 ` Casey Schaufler
2019-05-28 12:23 ` David Howells
2019-05-28 15:51 ` Casey Schaufler
2019-05-28 16:22 ` David Howells
2019-05-28 16:41 ` Casey Schaufler
2019-05-28 18:54 ` David Howells [this message]
2019-05-28 19:57 ` Casey Schaufler
2019-05-28 20:24 ` Casey Schaufler
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=9986.1559069658@warthog.procyon.org.uk \
--to=dhowells@redhat.com \
--cc=casey@schaufler-ca.com \
--cc=jose.bollo@iot.bzh \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-security-module@vger.kernel.org \
--cc=viro@zeniv.linux.org.uk \
--subject='Re: [PATCH] Smack: Restore the smackfsdef mount option' \
/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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).