-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
Create profile for secure-time-sync #274
Conversation
Thanks for your PR. Please have a look at the profile guideline: https://apparmor.pujol.io/development/guidelines to ensure your profile respect the guideline of this project. |
@{exec_path} = /usr/{,local/}bin/secure-time-sync | ||
profile secure-time-sync @{exec_path} flags=(attach_disconnected) { | ||
include <abstractions/base> | ||
include <abstractions/bash> |
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.
Not needed for bash script, remove
owner /etc/host.conf r, | ||
owner /etc/hosts r, | ||
owner /etc/nsswitch.conf r, | ||
owner /etc/passwd r, | ||
owner /etc/resolv.conf r, | ||
owner /etc/gai.conf r, |
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.
use nameservice-strict
owner /etc/ca-certificates/** r, | ||
owner /etc/ssl/** r, |
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.
Use ssl_certs
or ssl_keys
7e0f337
to
d3751d3
Compare
Thanks. Merged. |
Related to https://gitlab.com/madaidan/secure-time-sync
Credit to @szorfein by usr.bin.secure-time-sync