mirror of
git://github.com/lxc/lxc
synced 2025-08-30 21:29:32 +00:00
conf: set source property for devpts
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
@@ -1679,6 +1679,10 @@ static int lxc_prepare_devpts_child(struct lxc_handler *handler)
|
||||
if (fd_fs < 0)
|
||||
return syserror("Failed to prepare filesystem context for devpts");
|
||||
|
||||
ret = fs_set_property(fd_fs, "source", "devpts");
|
||||
if (ret < 0)
|
||||
SYSTRACE("Failed to set \"source=devpts\" on devpts filesystem context %d", fd_fs);
|
||||
|
||||
ret = fs_set_property(fd_fs, "gid", "5");
|
||||
if (ret < 0)
|
||||
SYSTRACE("Failed to set \"gid=5\" on devpts filesystem context %d", fd_fs);
|
||||
|
Reference in New Issue
Block a user