Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1656727

Re: [PATCH v1 1/1] Add Trusted Path Execution as a stackable LSM

From Al Viro <viro@ZenIV.linux.org.uk>
Newsgroups linux.kernel
Subject Re: [PATCH v1 1/1] Add Trusted Path Execution as a stackable LSM
Date 2017-06-03 08:40 +0200
Message-ID <tOaT7-3vS-5@gated-at.bofh.it> (permalink)
References <tOagp-33Q-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sat, Jun 03, 2017 at 01:53:51AM -0400, Matt Brown wrote:

> +static int tpe_bprm_set_creds(struct linux_binprm *bprm)
> +{
> +	struct file *file = bprm->file;
> +	struct inode *inode = d_backing_inode(file->f_path.dentry->d_parent);
> +	struct inode *file_inode = d_backing_inode(file->f_path.dentry);

Bloody wonderful.  Do tell, what *does* prevent a race with rename(2) here,
somehow making sure that your 'inode' won't get freed right under you?

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v1 1/1] Add Trusted Path Execution as a stackable LSM Matt Brown <matt@nmatt.com> - 2017-06-03 08:00 +0200
  Re: [PATCH v1 1/1] Add Trusted Path Execution as a stackable LSM Al Viro <viro@ZenIV.linux.org.uk> - 2017-06-03 08:40 +0200
    Re: [PATCH v1 1/1] Add Trusted Path Execution as a stackable LSM Matt Brown <matt@nmatt.com> - 2017-06-04 07:30 +0200
      Re: [kernel-hardening] Re: [PATCH v1 1/1] Add Trusted Path Execution  as a stackable LSM Eric Biggers <ebiggers3@gmail.com> - 2017-06-04 07:50 +0200
        Re: [kernel-hardening] Re: [PATCH v1 1/1] Add Trusted Path Execution  as a stackable LSM Matt Brown <matt@nmatt.com> - 2017-06-04 14:50 +0200
      Re: [PATCH v1 1/1] Add Trusted Path Execution as a stackable LSM Al Viro <viro@ZenIV.linux.org.uk> - 2017-06-04 09:00 +0200
  Re: [kernel-hardening] [PATCH v1 1/1] Add Trusted Path Execution as a  stackable LSM Jann Horn <jannh@google.com> - 2017-06-03 12:40 +0200
    Re: [kernel-hardening] [PATCH v1 1/1] Add Trusted Path Execution as a  stackable LSM Matt Brown <matt@nmatt.com> - 2017-06-04 00:40 +0200
  Re: [kernel-hardening] [PATCH v1 1/1] Add Trusted Path Execution as a  stackable LSM Mickaël Salaün <mic@digikod.net> - 2017-06-04 18:50 +0200
    Re: [kernel-hardening] [PATCH v1 1/1] Add Trusted Path Execution as a  stackable LSM Mickaël Salaün <mic@digikod.net> - 2017-06-05 00:10 +0200

csiph-web