Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFE: add minimal test for cgroupfs label inheritance #48

Closed
wants to merge 1 commit into from

Conversation

@WOnder93
Copy link
Contributor

commented Jan 30, 2019

This patch adds a tiny test that checks that labels of newly created
cgroupfs files/directories are correctly inherited from the parent.

Should start passing when the following issue is fixed:
SELinuxProject/selinux-kernel#39

Signed-off-by: Ondrej Mosnacek omosnace@redhat.com


# Create a new cgroupfs directory and relabel it.
mkdir("/sys/fs/cgroup/unified/test");
system("chcon -R -t test_cgroup_t /sys/fs/cgroup/unified/test");

This comment has been minimized.

Copy link
@stephensmalley

stephensmalley Jan 30, 2019

Member

Do we really need -R above?

This comment has been minimized.

Copy link
@WOnder93

WOnder93 Jan 30, 2019

Author Contributor

Not really, but it seemed unnatural to relabel just the directory. I don't mind dropping the -R if I have to.

This patch adds a tiny test that checks that labels of newly created
cgroupfs files/directories are correctly inherited from the parent.

Should start passing when the following issue is fixed:
SELinuxProject/selinux-kernel#39

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
@WOnder93 WOnder93 force-pushed the WOnder93:cgroupfs-labeling branch from a355fb9 to b1115cf Jan 30, 2019
@pcmoore

This comment has been minimized.

Copy link
Member

commented May 8, 2019

Merged via e03c12c, thanks.

@pcmoore pcmoore closed this May 8, 2019
@WOnder93 WOnder93 deleted the WOnder93:cgroupfs-labeling branch Sep 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.