Skip to content

Unbreak 'enter' when SELinux is disabled#360

Merged
debarshiray merged 1 commit into
containers:masterfrom
debarshiray:wip/rishi/issue-344
Jan 10, 2020
Merged

Unbreak 'enter' when SELinux is disabled#360
debarshiray merged 1 commit into
containers:masterfrom
debarshiray:wip/rishi/issue-344

Conversation

@debarshiray

Copy link
Copy Markdown
Member

/sys/fs/selinux is only present when SELinux is 'enforcing' or
'permissive'. When it's disabled, /sys/fs/selinux doesn't exist and
sysfs doesn't let you create it either. Therefore, the attempt to wipe
out the toolbox container's /sys/fs/selinux by bind mounting
/usr/share/empty over it fails, and in turn prevents the container from
starting up.

Fallout from f9cca57

#344

/sys/fs/selinux is only present when SELinux is 'enforcing' or
'permissive'. When it's disabled, /sys/fs/selinux doesn't exist and
sysfs doesn't let you create it either. Therefore, the attempt to wipe
out the toolbox container's /sys/fs/selinux by bind mounting
/usr/share/empty over it fails, and in turn prevents the container from
starting up.

Fallout from f9cca57

containers#344
@debarshiray debarshiray merged commit cb79382 into containers:master Jan 10, 2020
@debarshiray debarshiray deleted the wip/rishi/issue-344 branch January 10, 2020 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant