Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 583886 - app-emulation/lxc should warn about CONFIG_GRKERNSEC_CHROOT_FINDTASK
Summary: app-emulation/lxc should warn about CONFIG_GRKERNSEC_CHROOT_FINDTASK
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Virgil Dupras (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-23 14:39 UTC by Karl-Johan Karlsson
Modified: 2018-08-22 12:35 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karl-Johan Karlsson 2016-05-23 14:39:50 UTC
app-emulation/lxc (looks like all versions, but I've only tested 1.1.5 and 2.0.1) checks the kernel configuration and warns if some GRSecurity options are set. It does not currently warn about CONFIG_GRKERNSEC_CHROOT_FINDTASK. However, if that option is enabled, a process injected into the container using "lxc-attach" will only be able to see processes started in its session, not e.g. processes started by init when the container booted. This makes it impossible to call init scripts from an lxc-attach:ed shell, since the init scripts think all their processes have crashed.

Please add "~!GRKERNSEC_CHROOT_FINDTASK" to the CONFIG_CHECK expression in app-emulation/lxc.
Comment 1 Larry the Git Cow gentoo-dev 2018-08-22 12:35:05 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f63fbe792e3f4db205f04df2376a5aa0f92de494

commit f63fbe792e3f4db205f04df2376a5aa0f92de494
Author:     Nils Freydank <holgersson@posteo.de>
AuthorDate: 2018-08-21 21:45:23 +0000
Commit:     Virgil Dupras <vdupras@gentoo.org>
CommitDate: 2018-08-22 12:24:57 +0000

    app-emulation/lxc: Bump to 3.0.2.
    
    Closes: https://bugs.gentoo.org/583886
    Closes: https://bugs.gentoo.org/657816
    Closes: https://bugs.gentoo.org/663780
    Package-Manager: Portage-2.3.48, Repoman-2.3.10
    Closes: https://github.com/gentoo/gentoo/pull/9651

 app-emulation/lxc/Manifest         |   1 +
 app-emulation/lxc/lxc-3.0.2.ebuild | 158 +++++++++++++++++++++++++++++++++++++
 app-emulation/lxc/metadata.xml     |   1 +
 3 files changed, 160 insertions(+)