mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Robert Schwebel <r.schwebel@pengutronix.de>
To: linux-kernel@vger.kernel.org
Cc: viro@zeniv.linux.org.uk, Bjoern Buerger <bbu@pengutronix.de>
Subject: Mounting tmpfs with symbolic gid doesn't work
Date: Thu, 11 Jan 2007 12:38:12 +0100	[thread overview]
Message-ID: <20070111113812.GD29495@pengutronix.de> (raw)

Hi,

Mounting tmpfs with gid=<symbolic-group> doesn't work on recent kernels
any more; the same with uid=<symbolic-username> works fine:

rsc@isonoe:~$ mkdir troet
rsc@isonoe:~$ sudo mount -t tmpfs -ogid=rsc none troet/
mount: wrong fs type, bad option, bad superblock on none,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
rsc@isonoe:~/svn/ptxdist-trunk$ dmesg | tail -n 1 
tmpfs: Bad value 'rsc' for mount option 'gid'
rsc@isonoe:~$ sudo mount -t tmpfs -ogid=1006 none troet/
rsc@isonoe:~$ mount | grep troet
none on /home/rsc/troet type tmpfs (rw,gid=1006)
rsc@isonoe:~$ ls -ld troet/
drwxrwxrwt 2 root 1006 40 Jan 11 12:32 troet/
rsc@isonoe:~$ sudo umount troet/
rsc@isonoe:~$ sudo mount -t tmpfs -ouid=1006 none troet/
rsc@isonoe:~$ sudo umount troet/
rsc@isonoe:~$ sudo mount -t tmpfs -ouid=rsc none troet/
rsc@isonoe:~$ ls -ld troet/
drwxrwxrwt 2 rsc root 40 Jan 11 12:33 troet/
rsc@isonoe:~$ sudo umount troet/

Tested with 2.6.19-rc6, the behaviour seems to have worked until at
least 2.6.16. Does anyone have an idea?

Robert
-- 
 Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
 Pengutronix - Linux Solutions for Science and Industry
   Handelsregister:  Amtsgericht Hildesheim, HRA 2686
     Hannoversche Str. 2, 31134 Hildesheim, Germany
   Phone: +49-5121-206917-0 |  Fax: +49-5121-206917-9


             reply	other threads:[~2007-01-11 12:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-11 11:38 Robert Schwebel [this message]
2007-01-11 13:50 ` Hugh Dickins

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=20070111113812.GD29495@pengutronix.de \
    --to=r.schwebel@pengutronix.de \
    --cc=bbu@pengutronix.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=viro@zeniv.linux.org.uk \
    /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

all inboxes | Powered by JetHome®