Compare commits
2 Commits
e642a60294
...
c959381ed2
Author | SHA1 | Date | |
---|---|---|---|
c959381ed2 | |||
3633d24ebc |
@ -57,9 +57,7 @@ var containerTestCases = []struct {
|
|||||||
1000, 100, nil, 0, seccomp.PresetExt},
|
1000, 100, nil, 0, seccomp.PresetExt},
|
||||||
{"custom rules", true, true, true,
|
{"custom rules", true, true, true,
|
||||||
new(container.Ops), nil,
|
new(container.Ops), nil,
|
||||||
1, 31, []seccomp.NativeRule{
|
1, 31, []seccomp.NativeRule{{seccomp.ScmpSyscall(syscall.SYS_SETUID), seccomp.ScmpErrno(syscall.EPERM), nil}}, 0, seccomp.PresetExt},
|
||||||
{seccomp.ScmpSyscall(syscall.SYS_SETUID), seccomp.ScmpErrno(syscall.EPERM), nil},
|
|
||||||
}, 0, seccomp.PresetExt},
|
|
||||||
{"tmpfs", true, false, false,
|
{"tmpfs", true, false, false,
|
||||||
new(container.Ops).
|
new(container.Ops).
|
||||||
Tmpfs(hst.Tmp, 0, 0755),
|
Tmpfs(hst.Tmp, 0, 0755),
|
||||||
@ -106,7 +104,7 @@ func TestContainer(t *testing.T) {
|
|||||||
c.Gid = tc.gid
|
c.Gid = tc.gid
|
||||||
c.Hostname = hostname
|
c.Hostname = hostname
|
||||||
c.Stdout, c.Stderr = os.Stdout, os.Stderr
|
c.Stdout, c.Stderr = os.Stdout, os.Stderr
|
||||||
c.Ops = tc.ops
|
*c.Ops = append(*c.Ops, *tc.ops...)
|
||||||
c.SeccompRules = tc.rules
|
c.SeccompRules = tc.rules
|
||||||
c.SeccompFlags = tc.flags | seccomp.AllowMultiarch
|
c.SeccompFlags = tc.flags | seccomp.AllowMultiarch
|
||||||
c.SeccompPresets = tc.presets
|
c.SeccompPresets = tc.presets
|
||||||
|
12
flake.lock
generated
12
flake.lock
generated
@ -7,11 +7,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1748665073,
|
"lastModified": 1753479839,
|
||||||
"narHash": "sha256-RMhjnPKWtCoIIHiuR9QKD7xfsKb3agxzMfJY8V9MOew=",
|
"narHash": "sha256-E/rPVh7vyPMJUFl2NAew+zibNGfVbANr8BP8nLRbLkQ=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "282e1e029cb6ab4811114fc85110613d72771dea",
|
"rev": "0b9bf983db4d064764084cd6748efb1ab8297d1e",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -23,11 +23,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1749024892,
|
"lastModified": 1753345091,
|
||||||
"narHash": "sha256-OGcDEz60TXQC+gVz5sdtgGJdKVYr6rwdzQKuZAJQpCA=",
|
"narHash": "sha256-CdX2Rtvp5I8HGu9swBmYuq+ILwRxpXdJwlpg8jvN4tU=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "8f1b52b04f2cb6e5ead50bd28d76528a2f0380ef",
|
"rev": "3ff0e34b1383648053bba8ed03f201d3466f90c9",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -173,13 +173,6 @@ in
|
|||||||
} null;
|
} null;
|
||||||
} null;
|
} null;
|
||||||
".local" = fs "800001ed" {
|
".local" = fs "800001ed" {
|
||||||
share = fs "800001ed" {
|
|
||||||
dbus-1 = fs "800001ed" {
|
|
||||||
services = fs "800001ed" {
|
|
||||||
"ca.desrt.dconf.service" = fs "80001ff" null null;
|
|
||||||
} null;
|
|
||||||
} null;
|
|
||||||
} null;
|
|
||||||
state = fs "800001ed" {
|
state = fs "800001ed" {
|
||||||
".keep" = fs "80001ff" null "";
|
".keep" = fs "80001ff" null "";
|
||||||
home-manager = fs "800001ed" { gcroots = fs "800001ed" { current-home = fs "80001ff" null null; } null; } null;
|
home-manager = fs "800001ed" { gcroots = fs "800001ed" { current-home = fs "80001ff" null null; } null; } null;
|
||||||
|
@ -199,13 +199,6 @@ in
|
|||||||
} null;
|
} null;
|
||||||
} null;
|
} null;
|
||||||
".local" = fs "800001ed" {
|
".local" = fs "800001ed" {
|
||||||
share = fs "800001ed" {
|
|
||||||
dbus-1 = fs "800001ed" {
|
|
||||||
services = fs "800001ed" {
|
|
||||||
"ca.desrt.dconf.service" = fs "80001ff" null null;
|
|
||||||
} null;
|
|
||||||
} null;
|
|
||||||
} null;
|
|
||||||
state = fs "800001ed" {
|
state = fs "800001ed" {
|
||||||
".keep" = fs "80001ff" null "";
|
".keep" = fs "80001ff" null "";
|
||||||
home-manager = fs "800001ed" { gcroots = fs "800001ed" { current-home = fs "80001ff" null null; } null; } null;
|
home-manager = fs "800001ed" { gcroots = fs "800001ed" { current-home = fs "80001ff" null null; } null; } null;
|
||||||
|
@ -200,13 +200,6 @@ in
|
|||||||
} null;
|
} null;
|
||||||
} null;
|
} null;
|
||||||
".local" = fs "800001ed" {
|
".local" = fs "800001ed" {
|
||||||
share = fs "800001ed" {
|
|
||||||
dbus-1 = fs "800001ed" {
|
|
||||||
services = fs "800001ed" {
|
|
||||||
"ca.desrt.dconf.service" = fs "80001ff" null null;
|
|
||||||
} null;
|
|
||||||
} null;
|
|
||||||
} null;
|
|
||||||
state = fs "800001ed" {
|
state = fs "800001ed" {
|
||||||
".keep" = fs "80001ff" null "";
|
".keep" = fs "80001ff" null "";
|
||||||
home-manager = fs "800001ed" { gcroots = fs "800001ed" { current-home = fs "80001ff" null null; } null; } null;
|
home-manager = fs "800001ed" { gcroots = fs "800001ed" { current-home = fs "80001ff" null null; } null; } null;
|
||||||
|
@ -199,13 +199,6 @@ in
|
|||||||
} null;
|
} null;
|
||||||
} null;
|
} null;
|
||||||
".local" = fs "800001ed" {
|
".local" = fs "800001ed" {
|
||||||
share = fs "800001ed" {
|
|
||||||
dbus-1 = fs "800001ed" {
|
|
||||||
services = fs "800001ed" {
|
|
||||||
"ca.desrt.dconf.service" = fs "80001ff" null null;
|
|
||||||
} null;
|
|
||||||
} null;
|
|
||||||
} null;
|
|
||||||
state = fs "800001ed" {
|
state = fs "800001ed" {
|
||||||
".keep" = fs "80001ff" null "";
|
".keep" = fs "80001ff" null "";
|
||||||
home-manager = fs "800001ed" { gcroots = fs "800001ed" { current-home = fs "80001ff" null null; } null; } null;
|
home-manager = fs "800001ed" { gcroots = fs "800001ed" { current-home = fs "80001ff" null null; } null; } null;
|
||||||
|
@ -200,13 +200,6 @@ in
|
|||||||
} null;
|
} null;
|
||||||
} null;
|
} null;
|
||||||
".local" = fs "800001ed" {
|
".local" = fs "800001ed" {
|
||||||
share = fs "800001ed" {
|
|
||||||
dbus-1 = fs "800001ed" {
|
|
||||||
services = fs "800001ed" {
|
|
||||||
"ca.desrt.dconf.service" = fs "80001ff" null null;
|
|
||||||
} null;
|
|
||||||
} null;
|
|
||||||
} null;
|
|
||||||
state = fs "800001ed" {
|
state = fs "800001ed" {
|
||||||
".keep" = fs "80001ff" null "";
|
".keep" = fs "80001ff" null "";
|
||||||
home-manager = fs "800001ed" { gcroots = fs "800001ed" { current-home = fs "80001ff" null null; } null; } null;
|
home-manager = fs "800001ed" { gcroots = fs "800001ed" { current-home = fs "80001ff" null null; } null; } null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user