Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

drop 'owner' check on mountinfo and allow write to @{PROC}/[0-9]*/attr/current #167

Merged
merged 1 commit into from Oct 6, 2016

Conversation

jdstrand
Copy link
Collaborator

@jdstrand jdstrand commented Oct 6, 2016

Due to a kernel bug, the ouid is not being set correctly for /proc accesses by
setuid processes running in user namespaces. While the kernel needs to be
fixed, drop the 'owner' match on @{PROC}/*/mountinfo for now.

Since we are using aa_change_hat(), snap-confine needs to be able to write to
@{PROC}/[0-9]*/attr/current.

Bug: https://launchpad.net/bugs/1630789

…r/current

Due to a kernel bug, the ouid is not being set correctly for /proc accesses by
setuid processes running in user namespaces. While the kernel needs to be
fixed, drop the 'owner' match on @{PROC}/*/mountinfo for now.

Since we are using aa_change_hat(), snap-confine needs to be able to write to
@{PROC}/[0-9]*/attr/current.

Bug: https://launchpad.net/bugs/1630789
@jdstrand
Copy link
Collaborator Author

jdstrand commented Oct 6, 2016

Fyi, the test is failing for an unrelated reason: 2016/10/06 14:14:03 Cannot allocate linode:ubuntu-16.04-64-grub: authentication failed

@tyhicks
Copy link
Contributor

tyhicks commented Oct 6, 2016

Looks good to me. Thanks!

@jdstrand
Copy link
Collaborator Author

jdstrand commented Oct 6, 2016

This has been uploaded to Ubuntu 16.10.

@jdstrand jdstrand merged commit c5a1dbc into snapcore:master Oct 6, 2016
@jdstrand jdstrand deleted the lp1630789 branch November 10, 2016 20:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants