2
0
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:
Christian Brauner
2021-07-29 15:39:04 +02:00
parent 87dfb724ea
commit a32e275f25

View File

@@ -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);