- 06 Feb, 2019 4 commits
-
-
Christian Brauner authored
Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
The header defines a simple wrapper for free() that can be used with gcc's and clang's __attribute__((__cleanup__(<cleanup-fun>))) macro. Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
- 05 Feb, 2019 23 commits
-
-
Stéphane Graber authored
compiler: hardening
-
Christian Brauner authored
Warn if an extern declaration is encountered within a function. Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
Warn when macros __TIME__, __DATE__ or __TIMESTAMP__ are encountered as they might prevent bit-wise-identical reproducible compilations. Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
Warn about left shift overflows. This warning is enabled by default in C99 and C++11 modes (and newer). -Wshift-overflow=2 This warning level also warns about left-shifting 1 into the sign bit, unless C++14 mode (or newer) is active. Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
Warn if shift count >= width of type. Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
Do not warn whenever an #else or an #endif are followed by text. Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Stéphane Graber authored
compiler: hardening
-
Christian Brauner authored
Warn whenever a local variable or type declaration shadows another variable, parameter, type, class member (in C++), or instance variable (in Objective-C) or whenever a built-in function is shadowed. Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
-Wimplicit-fallthrough=5 doesn’t recognize any comments as fallthrough comments, only attributes disable the warning. Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
Enable -Wformat plus additional format checks. Currently equivalent to -Wformat -Wformat-nonliteral -Wformat-security -Wformat-y2k. Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
Warn whenever a function is defined with a return type that defaults to int. Also warn about any return statement with no return value in a function whose return type is not void (falling off the end of the function body is considered returning without a value). For C only, warn about a return statement with an expression in a function whose return type is void, unless the expression type is also void. As a GNU extension, the latter case is accepted without a warning unless -Wpedantic is used. Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
Warn about functions that might be candidates for attributes pure, const or noreturn or malloc. Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
Warn if floating-point values are used in equality comparisons. Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
Warn about uninitialized variables that are initialized with themselves. Note this option can only be used with the -Wuninitialized option. Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
Warn if an old-style function definition is used. A warning is given even if there is a previous prototype. Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
Warn if a user-supplied include directory does not exist. This already surfaced a bug that is fixed by this commit. Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
Warn about suspicious uses of logical operators in expressions. Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Stéphane Graber authored
fix rpm packaging for bash completion directory.
-
tomponline authored
Closed #1825 Signed-off-by:tomponline <tomp@tomp.uk>
-
- 01 Feb, 2019 3 commits
-
-
Stéphane Graber authored
cgroups: use of /sys/kernel/cgroup/delegate file
-
Stéphane Graber authored
Revert "conf: remove extra MS_BIND with sysfs:mixed"
-
Christian Brauner authored
This file contains the files one needs to chown to successfully delegate cgroup files to unprivileged users. Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
- 31 Jan, 2019 2 commits
-
-
Christian Brauner authored
freezer: non-functional changes
-
Christian Brauner authored
Fix the coding style in a few files. Fixes: db1228b3 ("Avoid hardcoded string length") Fixes: 71fc9c04 ("Avoid risk of "too far memory read"") Fixes: 2341916a ("Avoid double lxc-freeze/unfreeze") Fixes: 9eb9ce3e ("Update freezer.c") Signed-off-by:
Christian Brauner <christian.brauner@ubuntu.com>
-
- 29 Jan, 2019 2 commits
-
-
Christian Brauner authored
More accurate error msg for template file
-
Rachid Koucha authored
When calling lxc-create, if the template exists but is not executable, we end with the following error messages which make believe that the template file does not exist when it is merely a execute access problem: lxc-create: ctn00: utils.c: get_template_path: 918 No such file or directory - bad template: /.../lxc-busybox lxc-create: ctn00: lxccontainer.c: do_lxcapi_create: 1786 Unknown template "/.../lxc-busybox" lxc-create: ctn00: tools/lxc_create.c: main: 327 Failed to create container ctn00 Actually internally the errno is lost as the following code triggers a useless access to (strace output): access("/.../lxc-busybox", X_OK) = -1 ENOENT (No such file or directory) With the above fix, we get a more explicit error message when the template file is missing the "execute" bit: lxc-create: bbc: utils.c: get_template_path: 917 Permission denied - Bad template pathname: /tmp/azerty lxc-create: bbc: lxccontainer.c: do_lxcapi_create: 1816 Unknown template "/tmp/azerty" lxc-create: bbc: tools/lxc_create.c: main: 331 Failed to create container bbc With the above fix, we get a more explicit error message when the pathname of the template file is incorrect: lxc-create: bbc: utils.c: get_template_path: 917 No such file or directory - Bad template pathname: /tmp/qwerty lxc-create: bbc: lxccontainer.c: do_lxcapi_create: 1816 Unknown template "/tmp/qwerty" lxc-create: bbc: tools/lxc_create.c: main: 331 Failed to create container bbc Signed-off-by:Rachid Koucha <rachid.koucha@gmail.com>
-
- 28 Jan, 2019 4 commits
-
-
Stéphane Graber authored
conf: check for successful mount entry parse
-
Christian Brauner authored
doc: Add lxc.seccomp.allow_nesting to Japanese lxc.container.conf(5)
-
KATOH Yasufumi authored
Signed-off-by:KATOH Yasufumi <karma@jazz.email.ne.jp>
-
Serge Hallyn authored
compiler: remove deprecated and unneeded header
-
- 27 Jan, 2019 2 commits
-
-
Christian Brauner authored
Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-
Christian Brauner authored
Signed-off-by:Christian Brauner <christian.brauner@ubuntu.com>
-