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

Ubuntu 2204 compatibility #3

Open
wants to merge 4 commits into
base: stable
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update
  • Loading branch information
nobody43 committed Nov 30, 2022
commit 29ed81e44fb47858b7f535b704dd757ef6630ad1
2 changes: 1 addition & 1 deletion apparmor.d/bin.basenc
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ abi <abi/3.0>,

include <tunables/global>

profile basenc /{,usr/}{bin,sbin}/basenc flags=(complain) {
profile basenc /{,usr/}{bin,sbin}/basenc {

# Basic operating necessities
include <abstractions/base>
2 changes: 1 addition & 1 deletion apparmor.d/bin.cat
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ abi <abi/3.0>,

include <tunables/global>

profile cat /{,usr/}{bin,sbin}/cat flags=(complain) {
profile cat /{,usr/}{bin,sbin}/cat {

# Basic operating necessities
include <abstractions/base>
2 changes: 1 addition & 1 deletion apparmor.d/bin.comm
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ abi <abi/3.0>,

include <tunables/global>

profile comm /{,usr/}{bin,sbin}/comm flags=(complain) {
profile comm /{,usr/}{bin,sbin}/comm {

# Basic operating necessities
include <abstractions/base>
2 changes: 1 addition & 1 deletion apparmor.d/bin.cut
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ abi <abi/3.0>,

include <tunables/global>

profile cut /{,usr/}{bin,sbin}/cut flags=(complain) {
profile cut /{,usr/}{bin,sbin}/cut {

# Basic operating necessities
include <abstractions/base>
2 changes: 1 addition & 1 deletion apparmor.d/bin.diff
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ abi <abi/3.0>,

include <tunables/global>

profile diff /{,usr/}{bin,sbin}/diff flags=(complain) {
profile diff /{,usr/}{bin,sbin}/diff {

# Basic operating necessities
include <abstractions/base>
2 changes: 1 addition & 1 deletion apparmor.d/bin.echo
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ abi <abi/3.0>,

include <tunables/global>

profile echo /{,usr/}{bin,sbin}/echo flags=(complain) {
profile echo /{,usr/}{bin,sbin}/echo {

# Basic operating necessities
include <abstractions/base>
2 changes: 1 addition & 1 deletion apparmor.d/bin.file
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
##-----------------------------------------------------------------------------
## AppArmor profile for the "file" utility
## Tested with file 5.43-1 on Artix Linux
## coreutils 8.32-4.1ubuntu1 on Ubuntu 22.04
## file 5.41-3 on Ubuntu 22.04
## Profile author: EarthlySkies <[email protected]>
## Profile license: MIT license
## Target program: https://darwinsys.com/file/
22 changes: 12 additions & 10 deletions apparmor.d/bin.grep
Original file line number Diff line number Diff line change
@@ -1,30 +1,32 @@
# vim:syntax=apparmor
##-----------------------------------------------------------------------------
## AppArmor profile for the "grep" GNU utility
## Tested with grep 3.8-2 on Artix Linux
## coreutils 8.32-4.1ubuntu1 on Ubuntu 22.04
## Profile author: EarthlySkies <[email protected]>
## Profile license: MIT license
## Target program: https://gnu.org/software/grep
## Tested with: grep 3.8-2 on Artix Linux
## grep 3.8-2 on Arch Linux
## grep 3.7-1build1 on Ubuntu 22.04
## Profile authors: EarthlySkies <[email protected]>
## Profile license: the MIT license
## Target program : https://gnu.org/software/grep
##-----------------------------------------------------------------------------

abi <abi/3.0>,

include <tunables/global>

profile grep /{,usr/}{bin,sbin}/grep flags=(complain) {
profile grep /{,usr/}{bin,sbin}/grep {

# Basic operating necessities
include <abstractions/base>
include <abstractions/consoles>
/{,usr/}{bin,sbin}/grep mr,

capability dac_read_search,

# As a general utility, we might read data from anywhere on the system
/** r,
# We need this, since in addition to reading from stdin, grep can also be
# used to read directly from files and those files can be in arbitrary
# locations anywhere on the system
/{,**} r,

# Site-specific additions and overrides. See local/README for details
include if exists <local/bin.grep>

}

2 changes: 1 addition & 1 deletion apparmor.d/bin.od
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ abi <abi/3.0>,

include <tunables/global>

profile od /{,usr/}{bin,sbin}/od flags=(complain) {
profile od /{,usr/}{bin,sbin}/od {

# Basic operating necessities
include <abstractions/base>
2 changes: 1 addition & 1 deletion apparmor.d/bin.sort
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ abi <abi/3.0>,

include <tunables/global>

profile sort /{,usr/}{bin,sbin}/sort flags=(complain) {
profile sort /{,usr/}{bin,sbin}/sort {

# Basic operating necessities
include <abstractions/base>
2 changes: 1 addition & 1 deletion apparmor.d/bin.strings
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ abi <abi/3.0>,

include <tunables/global>

profile strings /{,usr/}{bin,sbin}/strings flags=(complain) {
profile strings /{,usr/}{bin,sbin}/strings {

# Basic operating necessities
include <abstractions/base>
2 changes: 1 addition & 1 deletion apparmor.d/bin.tac
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ abi <abi/3.0>,

include <tunables/global>

profile tac /{,usr/}{bin,sbin}/tac flags=(complain) {
profile tac /{,usr/}{bin,sbin}/tac {

# Basic operating necessities
include <abstractions/base>
2 changes: 1 addition & 1 deletion apparmor.d/bin.wc
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ abi <abi/3.0>,

include <tunables/global>

profile wc /{,usr/}{bin,sbin}/wc flags=(complain) {
profile wc /{,usr/}{bin,sbin}/wc {

# Basic operating necessities
include <abstractions/base>