[lxc/lxc] 5f2a6e: confile: make per_name struct static

0 views
Skip to first unread message

Stéphane Graber

unread,
May 4, 2021, 10:55:15 AM (11 days ago) May 4
to lxc-...@lists.linuxcontainers.org
Branch: refs/heads/master
Home: https://github.com/lxc/lxc
Commit: 5f2a6ec4e135bb467b675fe62fe5c7347136281b
https://github.com/lxc/lxc/commit/5f2a6ec4e135bb467b675fe62fe5c7347136281b
Author: Christian Brauner <christia...@ubuntu.com>
Date: 2021-05-04 (Tue, 04 May 2021)

Changed paths:
M src/lxc/confile.c

Log Message:
-----------
confile: make per_name struct static

Signed-off-by: Christian Brauner <christia...@ubuntu.com>


Commit: 1d74176da2661ca1fd8eefc016d7ff48d8758325
https://github.com/lxc/lxc/commit/1d74176da2661ca1fd8eefc016d7ff48d8758325
Author: Christian Brauner <christia...@ubuntu.com>
Date: 2021-05-04 (Tue, 04 May 2021)

Changed paths:
M src/lxc/commands.c

Log Message:
-----------
commands: log at debug not info level when receiving file descriptors

Don't spam the logs because we do receive a lot of file descriptors.

Signed-off-by: Christian Brauner <christia...@ubuntu.com>


Commit: 3857c4ebf05e6642e22aa4470a91b3aae15cfdee
https://github.com/lxc/lxc/commit/3857c4ebf05e6642e22aa4470a91b3aae15cfdee
Author: Christian Brauner <christia...@ubuntu.com>
Date: 2021-05-04 (Tue, 04 May 2021)

Changed paths:
M src/lxc/macro.h
M src/lxc/syscall_numbers.h
M src/lxc/syscall_wrappers.h

Log Message:
-----------
syscalls: wrap personality syscall if undefined

There's no need to making personality handling conditional as it has
been around for such a long time that only weird systems wouldn't have
support for it. And especially if the user requested a specific
personality to be set but the system doesn't support the personality
syscall we should loudly fail instead of moving on.

Signed-off-by: Christian Brauner <christia...@ubuntu.com>


Commit: 386089920474a00161ab528e57d12ba4b4a280ba
https://github.com/lxc/lxc/commit/386089920474a00161ab528e57d12ba4b4a280ba
Author: Christian Brauner <christia...@ubuntu.com>
Date: 2021-05-04 (Tue, 04 May 2021)

Changed paths:
M src/lxc/attach.c
M src/lxc/conf.c
M src/lxc/confile.c
M src/lxc/syscall_wrappers.h

Log Message:
-----------
tree-wide: make personality codepaths unconditional

Now that we have the infra to make personality handling unconitional
remove the ifndefs everywhere.

Signed-off-by: Christian Brauner <christia...@ubuntu.com>


Commit: 9c601e1f997d847078c4eda7ee711d6184f22545
https://github.com/lxc/lxc/commit/9c601e1f997d847078c4eda7ee711d6184f22545
Author: Christian Brauner <christia...@ubuntu.com>
Date: 2021-05-04 (Tue, 04 May 2021)

Changed paths:
M src/lxc/conf.c

Log Message:
-----------
conf: tweak setup_personality()

Use the dedicated LXC_ARCH_UNCHANGED macro everywhere instead of relying
on -1 being correct.

Signed-off-by: Christian Brauner <christia...@ubuntu.com>


Commit: 7c43fa56e70c65607f63dec8ff5a9682a3091ab2
https://github.com/lxc/lxc/commit/7c43fa56e70c65607f63dec8ff5a9682a3091ab2
Author: Christian Brauner <christia...@ubuntu.com>
Date: 2021-05-04 (Tue, 04 May 2021)

Changed paths:
M src/lxc/attach.c
M src/lxc/confile.c
M src/lxc/confile.h
M src/lxc/tools/lxc_attach.c

Log Message:
-----------
conf: rework lxc_config_parse_arch()

Fix architecture parsing. So far we couldn't really differ between "want
default architecture" and "failed to parse requested architecture"
because the -1 return value means both. Fix this by using the return
value only to indicate success or failure and return the parsed
personality in a return argument.

Signed-off-by: Christian Brauner <christia...@ubuntu.com>


Commit: 7fd384d11bb868479cbeeb9ade28edffe1d49d04
https://github.com/lxc/lxc/commit/7fd384d11bb868479cbeeb9ade28edffe1d49d04
Author: Christian Brauner <christia...@ubuntu.com>
Date: 2021-05-04 (Tue, 04 May 2021)

Changed paths:
M src/lxc/attach_options.h

Log Message:
-----------
attach_options: unbreak header

In a moment of idioticity I switch -1 with 0xffffffff in the header
definition but we use -1 to autodetect.

Signed-off-by: Christian Brauner <christia...@ubuntu.com>


Commit: 64a04c848a264525c783a20a39b8f520fdce258e
https://github.com/lxc/lxc/commit/64a04c848a264525c783a20a39b8f520fdce258e
Author: Christian Brauner <christia...@ubuntu.com>
Date: 2021-05-04 (Tue, 04 May 2021)

Changed paths:
M src/lxc/attach.c
M src/lxc/conf.c
M src/lxc/conf.h
M src/lxc/confile.c

Log Message:
-----------
conf: add personality_t

Catch errors in personality handling better.

Signed-off-by: Christian Brauner <christia...@ubuntu.com>


Commit: 3a881819622a548f5368878a4b799ca905e44d51
https://github.com/lxc/lxc/commit/3a881819622a548f5368878a4b799ca905e44d51
Author: Christian Brauner <christia...@ubuntu.com>
Date: 2021-05-04 (Tue, 04 May 2021)

Changed paths:
M src/lxc/attach.c
M src/lxc/attach_options.h

Log Message:
-----------
attach: introduce explicit personality macro

Introduce LXC_ATTACH_DETECT_PERSONALITY to make it explicit what is
happening instead of using -1.

Signed-off-by: Christian Brauner <christia...@ubuntu.com>


Commit: 78af4d9c908c4c2f885528f31447c4ddebd7edfa
https://github.com/lxc/lxc/commit/78af4d9c908c4c2f885528f31447c4ddebd7edfa
Author: Stéphane Graber <stgr...@ubuntu.com>
Date: 2021-05-04 (Tue, 04 May 2021)

Changed paths:
M src/lxc/attach.c
M src/lxc/attach_options.h
M src/lxc/commands.c
M src/lxc/conf.c
M src/lxc/conf.h
M src/lxc/confile.c
M src/lxc/confile.h
M src/lxc/macro.h
M src/lxc/syscall_numbers.h
M src/lxc/syscall_wrappers.h
M src/lxc/tools/lxc_attach.c

Log Message:
-----------
Merge pull request #3825 from brauner/2021-05-04.fixes

lxc.arch fixes


Compare: https://github.com/lxc/lxc/compare/13723cb9e5d6...78af4d9c908c
Reply all
Reply to author
Forward
0 new messages