-
Couldn't load subscription status.
- Fork 881
stage0: set journal permissions/ACLs to allow access to rkt group #1877
Conversation
0360517 to
47f64e3
Compare
stage0/run.go
Outdated
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.
I have no clue about Posix ACL, but this line looks like you are duplicating the chmod call above.
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.
Yeah, it seems "g:%d:r-x,m:r-x" is enough
81bbacd to
2349d6a
Compare
stage0/run.go
Outdated
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.
Should we care about /run/log/journal?
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.
Don't think so, if systemd sees /var/log/journal it uses that.
2349d6a to
ac16b1e
Compare
stage0/run.go
Outdated
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.
Shouldn't we only try this if the previous one does not error?
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.
right
|
I'm trying https://github.com/joshlf/go-acl which looks a bit better and is statically linked by default. |
|
Approach seems good to me! |
ac16b1e to
d7ddae9
Compare
|
Variable expansion for cgo was not added until go 1.5, hence the build error. |
d7ddae9 to
cd771fc
Compare
|
Hmm it would be nice if we can get godep sorted and just drop 1.4 support On Wed, Dec 16, 2015 at 4:18 PM, Iago López Galeiras <
|
0d81b2e to
b788a66
Compare
b788a66 to
de0ef4c
Compare
|
Ready for review. |
|
This requires updating the docs about new build dependency (development headers for libacl) and probably a configure check. Also, how do I test it? What I did is:
|
|
Are you in the rkt group? On Wed, Jan 6, 2016, 14:09 Krzesimir Nowak [email protected] wrote:
|
|
It worked after adding myself to |
|
|
added those |
|
Travis fails on go1.4 because some go tools were migrated from https://groups.google.com/forum/#!topic/golang-nuts/nZLhcbaa3wQ |
|
Ok, so go 1.4 is becoming problematic (or annoying) to support - https://groups.google.com/forum/#!topic/golang-nuts/wpUlkRdyomo Otherwise LFAD. |
|
I'll rebase when #1941 gets merged. |
Mimicking my host's `/var/log/journal` permissions, set pod's `/var/log/journal` to: ``` user::rwx group::r-x group:rkt:r-x mask::r-x other::r-x default:user::rwx default:group::r-x default:group:rkt:r-x default:mask::r-x default:other::r-x ```
db7d01f to
807f614
Compare
|
Updated. |
stage0: set journal permissions/ACLs to allow access to rkt group
|
Does it work fine with user namespaces? |
|
Yes. On Thu, 7 Jan 2016 at 13:22 Alban Crequy [email protected] wrote:
|
|
👍 |
Mimicking my host's
/var/log/journalpermissions, set pod's/var/log/journalto:Fixes #1755