Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
232763d6
Unverified
Commit
232763d6
authored
Jul 02, 2017
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
confile: lxc.pts --> lxc.pty.max
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
fe1c5887
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
34 additions
and
20 deletions
+34
-20
common.conf.in
config/templates/common.conf.in
+1
-1
openwrt.common.conf.in
config/templates/openwrt.common.conf.in
+1
-1
sabayon.common.conf.in
config/templates/sabayon.common.conf.in
+1
-1
lxc.container.conf.sgml.in
doc/lxc.container.conf.sgml.in
+1
-1
confile.c
src/lxc/confile.c
+13
-8
parse_config_file.c
src/tests/parse_config_file.c
+10
-1
lxc-altlinux.in
templates/lxc-altlinux.in
+1
-1
lxc-busybox.in
templates/lxc-busybox.in
+1
-1
lxc-cirros.in
templates/lxc-cirros.in
+1
-1
lxc-debian.in
templates/lxc-debian.in
+1
-1
lxc-openmandriva.in
templates/lxc-openmandriva.in
+1
-1
lxc-pld.in
templates/lxc-pld.in
+1
-1
lxc-sshd.in
templates/lxc-sshd.in
+1
-1
No files found.
config/templates/common.conf.in
View file @
232763d6
...
...
@@ -4,7 +4,7 @@
lxc.tty.dir = lxc
# Allow for 1024 pseudo terminals
lxc.pt
s
= 1024
lxc.pt
y.max
= 1024
# Setup 4 tty devices
lxc.tty.max = 4
...
...
config/templates/openwrt.common.conf.in
View file @
232763d6
# Default console settings
lxc.tty.dir = lxc
lxc.tty.max = 4
lxc.pt
s
= 1024
lxc.pt
y.max
= 1024
# Default capabilities
lxc.cap.drop = mac_admin
...
...
config/templates/sabayon.common.conf.in
View file @
232763d6
...
...
@@ -4,7 +4,7 @@
lxc.mount.auto = cgroup:mixed proc:mixed sys:mixed
# Allow for 1024 pseudo terminals
lxc.pt
s
= 1024
lxc.pt
y.max
= 1024
# Setup 1 tty devices for lxc-console command
lxc.tty.max = 1
...
...
doc/lxc.container.conf.sgml.in
View file @
232763d6
...
...
@@ -650,7 +650,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
<variablelist>
<varlistentry>
<term>
<option>lxc.pt
s
</option>
<option>lxc.pt
y.max
</option>
</term>
<listitem>
<para>
...
...
src/lxc/confile.c
View file @
232763d6
...
...
@@ -75,7 +75,7 @@ lxc_log_define(lxc_confile, lxc);
lxc_config_define
(
personality
);
lxc_config_define
(
pt
s
);
lxc_config_define
(
pt
y_max
);
lxc_config_define
(
tty_max
);
lxc_config_define
(
tty_dir
);
lxc_config_define
(
apparmor_profile
);
...
...
@@ -135,11 +135,16 @@ lxc_config_define(prlimit);
static
struct
lxc_config_t
config
[]
=
{
{
"lxc.arch"
,
set_config_personality
,
get_config_personality
,
clr_config_personality
,
},
{
"lxc.pt
s"
,
set_config_pts
,
get_config_pts
,
clr_config_pts
,
},
{
"lxc.pt
y.max"
,
set_config_pty_max
,
get_config_pty_max
,
clr_config_pty_max
,
},
{
"lxc.tty.dir"
,
set_config_tty_dir
,
get_config_tty_dir
,
clr_config_tty_dir
,
},
{
"lxc.tty.max"
,
set_config_tty_max
,
get_config_tty_max
,
clr_config_tty_max
,
},
/* REMOVE IN LXC 3.0
legacy pts key
*/
{
"lxc.pts"
,
set_config_pty_max
,
get_config_pty_max
,
clr_config_pty_max
,
},
/* REMOVE IN LXC 3.0
legacy devttydir key
*/
{
"lxc.devttydir"
,
set_config_tty_dir
,
get_config_tty_dir
,
clr_config_tty_dir
,
},
...
...
@@ -1162,8 +1167,8 @@ static int set_config_personality(const char *key, const char *value,
return
0
;
}
static
int
set_config_pt
s
(
const
char
*
key
,
const
char
*
value
,
struct
lxc_conf
*
lxc_conf
,
void
*
data
)
static
int
set_config_pt
y_max
(
const
char
*
key
,
const
char
*
value
,
struct
lxc_conf
*
lxc_conf
,
void
*
data
)
{
/* Set config value to default. */
if
(
lxc_config_value_empty
(
value
))
{
...
...
@@ -2794,8 +2799,8 @@ static int get_config_personality(const char *key, char *retv, int inlen,
return
fulllen
;
}
static
int
get_config_pt
s
(
const
char
*
key
,
char
*
retv
,
int
inlen
,
struct
lxc_conf
*
c
,
void
*
data
)
static
int
get_config_pt
y_max
(
const
char
*
key
,
char
*
retv
,
int
inlen
,
struct
lxc_conf
*
c
,
void
*
data
)
{
return
lxc_get_conf_int
(
c
,
retv
,
inlen
,
c
->
pts
);
}
...
...
@@ -3366,8 +3371,8 @@ static inline int clr_config_personality(const char *key, struct lxc_conf *c,
return
0
;
}
static
inline
int
clr_config_pt
s
(
const
char
*
key
,
struct
lxc_conf
*
c
,
void
*
data
)
static
inline
int
clr_config_pt
y_max
(
const
char
*
key
,
struct
lxc_conf
*
c
,
void
*
data
)
{
c
->
pts
=
0
;
return
0
;
...
...
src/tests/parse_config_file.c
View file @
232763d6
...
...
@@ -300,13 +300,22 @@ int main(int argc, char *argv[])
goto
non_test_error
;
}
/* lxc.pts */
/* REMOVE IN LXC 3.0
legacy ps keys
*/
if
(
set_get_compare_clear_save_load
(
c
,
"lxc.pts"
,
"1000"
,
tmpf
,
true
)
<
0
)
{
lxc_error
(
"%s
\n
"
,
"lxc.pts"
);
goto
non_test_error
;
}
/* lxc.pty.max */
if
(
set_get_compare_clear_save_load
(
c
,
"lxc.pty.max"
,
"1000"
,
tmpf
,
true
)
<
0
)
{
lxc_error
(
"%s
\n
"
,
"lxc.pty.max"
);
goto
non_test_error
;
}
/* REMOVE IN LXC 3.0
legacy tty.max keys
*/
...
...
templates/lxc-altlinux.in
View file @
232763d6
...
...
@@ -278,7 +278,7 @@ copy_configuration()
cat
<<
EOF
>>
$config_path
/config
lxc.uts.name =
$name
lxc.tty.max = 4
lxc.pt
s
= 1024
lxc.pt
y.max
= 1024
lxc.cap.drop = sys_module mac_admin mac_override sys_time
# When using LXC with apparmor, uncomment the next line to run unconfined:
...
...
templates/lxc-busybox.in
View file @
232763d6
...
...
@@ -345,7 +345,7 @@ lxc.signal.halt = SIGUSR1
lxc.rebootsignal = SIGTERM
lxc.uts.name =
$name
lxc.tty.max = 1
lxc.pt
s
= 1
lxc.pt
y.max
= 1
lxc.cap.drop = sys_module mac_admin mac_override sys_time
# When using LXC with apparmor, uncomment the next line to run unconfined:
...
...
templates/lxc-cirros.in
View file @
232763d6
...
...
@@ -121,7 +121,7 @@ cat >> "$path/config" <<EOF
lxc.rootfs.path =
$rootfs
lxc.tty.max = 4
lxc.pt
s
= 1024
lxc.pt
y.max
= 1024
lxc.uts.name =
$name
lxc.arch =
$arch
...
...
templates/lxc-debian.in
View file @
232763d6
...
...
@@ -517,7 +517,7 @@ copy_configuration()
lxc.tty.max =
$num_tty
lxc.uts.name =
$hostname
lxc.arch =
$arch
lxc.pt
s=1023
lxc.pt
y.max = 1024
EOF
if
[
$?
-ne
0
]
;
then
...
...
templates/lxc-openmandriva.in
View file @
232763d6
...
...
@@ -230,7 +230,7 @@ copy_configuration()
cat
<<
EOF
>>
$config_path
/config
lxc.uts.name =
$name
lxc.tty.max = 4
lxc.pt
s
= 1024
lxc.pt
y.max
= 1024
lxc.cap.drop = sys_module mac_admin mac_override sys_time
lxc.mount.auto = cgroup:mixed proc:mixed sys:mixed
...
...
templates/lxc-pld.in
View file @
232763d6
...
...
@@ -240,7 +240,7 @@ copy_configuration()
# lxc.include = /usr/share/lxc/config/common.conf
lxc.uts.name =
$utsname
lxc.tty.max = 4
lxc.pt
s
= 1024
lxc.pt
y.max
= 1024
# Consider if below line is right for systemd container
lxc.mount.fstab =
$config_path
/fstab
lxc.cap.drop = sys_module mac_admin mac_override sys_time
...
...
templates/lxc-sshd.in
View file @
232763d6
...
...
@@ -130,7 +130,7 @@ copy_configuration()
grep
-q
"^lxc.rootfs.path"
$path
/config 2>/dev/null
||
echo
"lxc.rootfs.path =
$rootfs
"
>>
$path
/config
cat
<<
EOF
>>
$path
/config
lxc.uts.name =
$name
lxc.pt
s
= 1024
lxc.pt
y.max
= 1024
lxc.cap.drop = sys_module mac_admin mac_override sys_time
# When using LXC with apparmor, uncomment the next line to run unconfined:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment