lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200702051813.26958.agruen@suse.de>
Date:	Mon, 5 Feb 2007 18:13:26 -0800
From:	Andreas Gruenbacher <agruen@...e.de>
To:	Christoph Hellwig <hch@...radead.org>
Cc:	Tony Jones <tonyj@...e.de>, linux-kernel@...r.kernel.org,
	linux-fsdevel@...r.kernel.org, chrisw@...s-sol.org,
	linux-security-module@...r.kernel.org, viro@...iv.linux.org.uk
Subject: Re: [RFC 0/28] Patches to pass vfsmount to LSM inode security hooks

On Monday 05 February 2007 10:44, Christoph Hellwig wrote:
> Looking at the actual patches I see you're lazy in a lot of places.
> Please make sure that when you introduce a vfsmount argument somewhere
> that it is _always_ passed and not just when it's conveniant.  Yes, that's
> more work, but then again if you're not consistant anyone half-serious
> will laught at a security model using this infrasturcture.

It may appear like laziness, but it's not. Let's look at where we're passing 
NULL at the moment:

fs/hpfs/namei.c

	In hpfs_unlink, hpfs truncates one of its own inodes through
	notify_change(). You definitely don't want any lsms to interfere here,
	pathname based or not; hpfs should probably truncate its inode itself
	instead. But given that hpfs goes via the vfs, we at least pass NULL
	to indicate that this file really has no meaningful paths to it
	anymore. (In addition, we don't really have a vfsmount at this
	point anymore, and neither would it make sense to pass it there.)

	To play more nicely with other lsms, hpfs could mark the inode as
	private before attempting the truncate.

fs/reiserfs/xattr.c

	The directories an files that reiserfs uses internally to store xattrs
	are hanging off ".reiserfs_priv/xattrs" in the filesystem. This part
	of the namespace is not accessible or visible from user space though
	except through the xattr syscalls.

	Reiserfs should probably just mark all its xattr inodes as private in order
	to play nicely with other lsms. As far as pathname based lsms are concerned,
	pathnames to those fs-internal objects are meaningless though, and so we
	pass NULL here.

fs/sysfs/file.c
fs/nfsd/vfs.c and fs/nfsd/nfs4recover.c

	For nfsd, the concept of pathnames is a bit peculiar. I'll try to respond to
	that separately.

Thanks,
Andreas
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ