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]
Date:	Thu, 24 Feb 2011 11:49:13 -0500
From:	Ted Ts'o <tytso@....edu>
To:	Jan Kara <jack@...e.cz>
Cc:	Eric Sandeen <sandeen@...hat.com>,
	ext4 development <linux-ext4@...r.kernel.org>
Subject: Re: [PATCH] ext4: enable acls and user_xattr by default

On Thu, Feb 24, 2011 at 02:57:40PM +0100, Jan Kara wrote:
>   I've actually tried that before posting my email and it's not like that.
> I did:
> jack@...ck:~/source> echo 'aaa' >/tmp/f
> jack@...ck:~/source> chmod 600 /tmp/f
> jack@...ck:~/source> setfacl -m u:nobody:rw /tmp/f
> jack@...ck:~/source> sudo su nobody -c "cat /tmp/f"
> aaa
> jack@...ck:~/source> sudo su news -c "cat /tmp/f"
> cat: /tmp/f: Permission denied

Hmm... yes, but it's a bit more complicated.  Look at this, and note
how remounting the file system without acl's gave the group "users" rw
access to the file /mnt/f.

						- Ted

<tytso.root@...so-glaptop> {/}  
2100# mount -o acl /dev/funarg/test /mnt
<tytso.root@...so-glaptop> {/}  
2101# echo aaa > /mnt/f
<tytso.root@...so-glaptop> {/}  
2102# chown root:users /mnt/f
<tytso.root@...so-glaptop> {/}  
2103# chmod 400 /mnt/f
<tytso.root@...so-glaptop> {/}  
2104# ls -l /mnt/f
4 -r-------- 1 root users 4 Feb 24 11:46 /mnt/f
<tytso.root@...so-glaptop> {/}  
2105# setfacl -m u:tytso:rw /mnt/f
<tytso.root@...so-glaptop> {/}  
2106# getfacl /mnt/f
getfacl: Removing leading '/' from absolute path names
# file: mnt/f
# owner: root
# group: users
user::r--
user:tytso:rw-
group::---
mask::rw-
other::---

<tytso.root@...so-glaptop> {/}  
2107# ls -l /mnt/f
8 -r--rw----+ 1 root users 4 Feb 24 11:46 /mnt/f
<tytso.root@...so-glaptop> {/}  
2108# umount /mnt
<tytso.root@...so-glaptop> {/}  
2109# mount -o noacl /dev/funarg/test /mnt
<tytso.root@...so-glaptop> {/}  
2110# ls -l /mnt/f
8 -r--rw---- 1 root users 4 Feb 24 11:46 /mnt/f



--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ