mirror of
https://github.com/systemd/systemd.git
synced 2024-11-08 11:27:32 +03:00
Merge pull request #670 from floppym/ptsuid
nspawn: Don't pass uid mount option for devpts
This commit is contained in:
commit
0ed5c799a6
@ -1785,15 +1785,13 @@ static int setup_pts(const char *dest) {
|
||||
#ifdef HAVE_SELINUX
|
||||
if (arg_selinux_apifs_context)
|
||||
(void) asprintf(&options,
|
||||
"newinstance,ptmxmode=0666,mode=620,uid=" UID_FMT ",gid=" GID_FMT ",context=\"%s\"",
|
||||
arg_uid_shift,
|
||||
"newinstance,ptmxmode=0666,mode=620,gid=" GID_FMT ",context=\"%s\"",
|
||||
arg_uid_shift + TTY_GID,
|
||||
arg_selinux_apifs_context);
|
||||
else
|
||||
#endif
|
||||
(void) asprintf(&options,
|
||||
"newinstance,ptmxmode=0666,mode=620,uid=" UID_FMT ",gid=" GID_FMT,
|
||||
arg_uid_shift,
|
||||
"newinstance,ptmxmode=0666,mode=620,gid=" GID_FMT,
|
||||
arg_uid_shift + TTY_GID);
|
||||
|
||||
if (!options)
|
||||
|
Loading…
Reference in New Issue
Block a user