devpts is mounted incorrectly in the non-initrd case
Bug #1244763 reported by
Adam Conrad
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
upstart |
Fix Released
|
Medium
|
Steve Langasek | ||
upstart (Ubuntu) |
Fix Released
|
Medium
|
Steve Langasek |
Bug Description
In most places in Ubuntu, devpts is mounted correctly with gid=5,mode=620, however upstart itself mounts it incorrectly in the cases when it's not already mounted by something else:
init/main.c: if (system_mount ("devpts", "/dev/pts", (MS_NOEXEC | MS_NOSUID)) < 0)
Compare to, say, systemd, which does this:
#ifndef TTY_GID
#define TTY_GID 5
#endif
[...]
src/core/
Please fix this up, as this will explode in special and fun ways when pt_chown goes away and we stop falling back on it as a crutch when the devpts permissions are wrong.
Related branches
lp:~vorlon/upstart/lp.1244763
- Dimitri John Ledkov: Approve
- Adam Conrad (community): Approve
-
Diff: 114 lines (+25/-15)4 files modifiedChangeLog (+7/-0)
init/main.c (+8/-4)
init/system.c (+9/-10)
init/system.h (+1/-1)
Changed in upstart: | |
status: | In Progress → Fix Committed |
To post a comment you must log in.
Marking 'medium' since this code path is only used in initramfsless systems, which are not the common case.