public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Mounting /proc w/ kernel 3.4.0 - "uid" parameter no longer valid?
@ 2012-05-24  3:08 D. Stussy
  2012-05-24 14:17 ` Eric W. Biederman
  0 siblings, 1 reply; 3+ messages in thread
From: D. Stussy @ 2012-05-24  3:08 UTC (permalink / raw)
  To: linux-kernel

proc:  unrecognized mount option "uid=1" or missing value

This works under 3.3.6 and earlier (I never tried 3.3.7).  It appears that the 
"uid" mount option was removed.  WHY?  More importantly, where is this change 
listed?  I didn't see it in the git log.

This is really bad as I rebooted a remotely colocated server and since the 
procfs is not mounted, I cannot log in via SSH to correct the problem.

OK, so there's not that much point in changing the UID of the procfs files, 
but I preferred to set their default ownership to a non-privileged user. 


^ permalink raw reply	[flat|nested] 3+ messages in thread
* Re: Mounting /proc w/ kernel 3.4.0 - "uid" parameter no longer valid?
@ 2012-05-24 19:52 kd6lvw
  0 siblings, 0 replies; 3+ messages in thread
From: kd6lvw @ 2012-05-24 19:52 UTC (permalink / raw)
  To: Eric W. Biederman; +Cc: linux-kernel

--- On Thu, 5/24/12, Eric W. Biederman <ebiederm@xmission.com> wrote:
> "D. Stussy" <spam+newsgroups@bde-arc.ampr.org> writes:
> > proc:  unrecognized mount option "uid=1" or missing value
> >
> > This works under 3.3.6 and earlier (I never tried 3.3.7).  It appears that the
> > "uid" mount option was removed.  WHY?  More importantly, where is this change
> > listed?  I didn't see it in the git log.
> >
> > This is really bad as I rebooted a remotely colocated server and since the
> > procfs is not mounted, I cannot log in via SSH to correct the problem.
> >
> > OK, so there's not that much point in changing the UID of the procfs files, but
> > I preferred to set their default ownership to a non-privileged user. 
> 
> There has never been a uid= option to /proc in Linus's tree.  I believe
> if you look you will find this feature was from a patch (perhaps from
> your distro) that added that support.

I compile both the util-linux-ng and the kernel from source.  There is no distribution patch involved.  As noted, kernel version 3.3.6 didn't bitch about the setting, while 3.4.0 does and won't mount procfs.

>From the man page (copy at "http://linux.die.net/man/8/mount"):

"Mount options for proc

     "uid=value and gid=value 

"These options are recognized, but have no effect as far as I can see."


Removal of this compatibility should have been noted.  WHERE was it noted?  Linux.die.net is a distribution independent documentation site.  It might not do anything, but per mount's documentation, it is acceptable.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-05-24 19:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-24  3:08 Mounting /proc w/ kernel 3.4.0 - "uid" parameter no longer valid? D. Stussy
2012-05-24 14:17 ` Eric W. Biederman
  -- strict thread matches above, loose matches on Subject: below --
2012-05-24 19:52 kd6lvw

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox