-
Notifications
You must be signed in to change notification settings - Fork 18.9k
fix apparmor default profile for version 2.8.* #20270
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
fix apparmor default profile for version 2.8.* #20270
Conversation
This commit moby@6480feb added a ptrace rule to the default apparmor profile However, ptrace is not supported until version 2.9 See release notes: http://wiki.apparmor.net/index.php/ReleaseNotes_2_9_0 and the specific commit: http://bazaar.launchpad.net/~apparmor-dev/apparmor/2.9/revision/2480 The confusion came because Ubuntu has version 2.8.95 of apparmor in Ubuntu 14.04 LTS (The Trusty Tahr) version 2.8.95 is a beta version for 2.9, that is why it has support for the ptrace rule, but this is not the general case for 2.8.*. I've checked the version of apparmor in Ubuntu: https://launchpad.net/ubuntu/+source/apparmor and there is no other 2.8.* version other than 2.8.95 Thanks to Christian Boltz for his help Signed-off-by: Jordi Massaguer Pla <[email protected]> Fixes moby#20269
|
The windows testing servers appear to be broken, and attempting to rebuild doesn't help. @jhowardmsft, do you know what's going on? |
|
Will look in a bit when in the office |
| {{if ge .MajorVersion 2}}{{if ge .MinorVersion 8}} | ||
| {{if ge .MajorVersion 2}}{{if ge .MinorVersion 8}}{{if ge .PatchLevel 95}} | ||
| # apparmor-2.8.95 is Ubuntu 14.04 LTS (Trusty Tahr) | ||
| # apparmor-2.8.95 is apparmor-2.9 beta, which supports ptrace rule |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indentation looks super weird
|
thanks for digging into this, wish the package managers would just ship the same version numbers |
|
you need to rebase on master, your pkg is out of date and adding code to the wrong place, then you can even update the unit test as well |
|
@mikedougherty - I think I know why this is failing. Will ping you offline. |
|
Job: Docker-PRs-WoW-TP4 FAILED: ---
12T21:41:35Z" level=error msg="hcsshim::DestroyLayer - Win32 API call returned error r1=0x80070020 err=The process cannot access the file because it is being used by another process.id=CI flavour=0"
ERROR: hcsshim::DestroyLayer - Win32 API call returned error r1=0x80070020 err=The process cannot access the file because it is being used by another process.id=CI flavour=0
INFO: End of cleanup
INFO: Ended at Fri Feb 12 21:41:35 CUT 2016 (0m 1s)
Build step 'Execute shell' marked build as failure
[PostBuildScript] - Execution post build scripts.
[docker] $ sh -xe C:\Users\jenkins\AppData\Local\Temp\hudson2513021672682763461.sh
+ set +e
+ set +x
INFO: Nuking /d/CI
time="2016-02-12T21:41:41Z" level=error msg="hcsshim::DestroyLayer - Win32 API call returned error r1=0x80070020 err=The process cannot access the file because it is being used by another process.id=CI flavour=0"
ERROR: hcsshim::DestroyLayer - Win32 API call returned error r1=0x80070020 err=The process cannot access the file because it is being used by another process.id=CI
---
|
|
Scrub above comment. The reason this is failing is you're trying to merge into 1.10.1, not master. WindowsTP4 context needs 1.11 to run successfully as dockerfile.Windows (and other PRs) are not present in 1.10 |
|
you need to open this PR against master, closing |
This commit
6480feb
added a ptrace rule to the default apparmor profile
However, ptrace is not supported until version 2.9
See release notes:
http://wiki.apparmor.net/index.php/ReleaseNotes_2_9_0
and the specific commit:
http://bazaar.launchpad.net/~apparmor-dev/apparmor/2.9/revision/2480
The confusion came because Ubuntu has version 2.8.95 of apparmor in
Ubuntu 14.04 LTS (The Trusty Tahr)
version 2.8.95 is a beta version for 2.9, that is why it has support for
the ptrace rule, but this is not the general case for 2.8.*.
I've checked the version of apparmor in Ubuntu:
https://launchpad.net/ubuntu/+source/apparmor
and there is no other 2.8.* version other than 2.8.95
Thanks to Christian Boltz for his help
Signed-off-by: Jordi Massaguer Pla [email protected]
Fixes #20269