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

rename /usr/share/qm/seccomp.json #711

Merged
merged 1 commit into from
Jan 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion create-seccomp-rules
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
SECCOMP_CONTAINERS_FILE="/usr/share/containers/seccomp.json"
SYSCALLS_TO_DENY=("sched_setscheduler" "sched_setattr")

QM_PATH_SECCOMP="/usr/share/qm/seccomp.json"
QM_PATH_SECCOMP="/usr/share/qm/seccomp-no-rt.json"
QM_DIR="${QM_PATH_SECCOMP%/*}"

function remove_seccomp_entry_from_allow() {
Expand Down
2 changes: 1 addition & 1 deletion qm.container
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ AddCapability=all
# For details see: https://docs.podman.io/en/latest/markdown/podman-systemd.unit.5.html#unmask
Unmask=ALL
SecurityLabelNested=true
SeccompProfile=/usr/share/qm/seccomp.json
SeccompProfile=/usr/share/qm/seccomp-no-rt.json

# PidsLimit
# ---------
Expand Down
2 changes: 1 addition & 1 deletion rpm/qm.spec
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
%global selinuxtype targeted
%global moduletype services
%global modulenames qm
%global seccomp_json /usr/share/%{modulenames}/seccomp.json
%global seccomp_json /usr/share/%{modulenames}/seccomp-no-rt.json
%global setup_tool %{_prefix}/share/%{modulenames}/setup

%global _installscriptdir %{_prefix}/lib/%{modulenames}
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/tools/FFI/deny_sched_setattr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ and must validated via FFI tests.

## How to deny is made?

During the QM service startup it passes arguments to Podman. One of these arguments is `seccomp=/usr/share/qm/seccomp.json` which contains rules that deny the `sched_setattr()`.
During the QM service startup it passes arguments to Podman. One of these arguments is `seccomp=/usr/share/qm/seccomp-no-rt.json` which contains rules that deny the `sched_setattr()`.

## How to test?

Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/tools/FFI/deny_set_scheduler/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ QM environment deny `set_scheduler()` syscall for safety and must be validated v

## How to deny is made?

During the QM service startup it passes arguments to Podman. One of these arguments is `seccomp=/usr/share/qm/seccomp.json` which contains rules that deny the `set_scheduler()`.
During the QM service startup it passes arguments to Podman. One of these arguments is `seccomp=/usr/share/qm/seccomp-no-rt.json` which contains rules that deny the `set_scheduler()`.

## How to test?

Expand Down
2 changes: 1 addition & 1 deletion tests/ffi/disk/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ OOMScoreAdjust=1000

[Container]
PodmanArgs=
PodmanArgs=--pids-limit=-1 --security-opt seccomp=/usr/share/qm/seccomp.json --security-opt label=nested --security-opt unmask=all --memory 5G
PodmanArgs=--pids-limit=-1 --security-opt seccomp=/usr/share/qm/seccomp-no-rt.json --security-opt label=nested --security-opt unmask=all --memory 5G

EOF

Expand Down
Loading