File tree Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 11source common.sh
22
3+ USER=$( whoami)
4+
5+ setfacl -m " u:$USER :r" example || skipTest " ACLs not supported"
6+
37# Adds the "dummy" file to the nix store and check that we can access it
48EXAMPLE_PATH=$( nix store add-path dummy)
59nix store access info " $EXAMPLE_PATH " --json | grep ' "protected":false'
@@ -12,8 +16,6 @@ nix store access protect "$EXAMPLE_PATH"
1216nix store access info " $EXAMPLE_PATH " --json | grep ' "protected":true'
1317nix store access info " $EXAMPLE_PATH " --json | grep ' "users":\[\]'
1418
15- USER=$( whoami)
16-
1719# Grant permission and check that we can access the file
1820nix store access grant " $EXAMPLE_PATH " --user " $USER "
1921cat " $EXAMPLE_PATH "
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ cat > "$NIX_CONF_DIR"/nix.conf <<EOF
2020build-users-group =
2121keep-derivations = false
2222sandbox = false
23- experimental-features = nix-command flakes
23+ experimental-features = nix-command flakes acls
2424gc-reserved-space = 0
2525substituters =
2626flake-registry = $TEST_ROOT /registry.json
Original file line number Diff line number Diff line change @@ -137,7 +137,8 @@ nix_tests = \
137137 path-from-hash-part.sh \
138138 test-libstoreconsumer.sh \
139139 toString-path.sh \
140- read-only-store.sh
140+ read-only-store.sh \
141+ acls.sh
141142
142143acls_test = \
143144 acls.sh \
Original file line number Diff line number Diff line change 3535 permissions = {
3636 protected = true;
3737 users = ["root" "test"];
38+ groups = ["root"];
3839 };
3940 };
4041 buildCommand = "echo Example > $out; cat $exampleSource >> $out";
6061 permissions = {
6162 protected = true;
6263 users = ["root" "test"];
64+ groups = ["root"];
6365 };
6466 };
6567 buildCommand = "echo Example > $out; cat $exampleSource >> $out";
You can’t perform that action at this time.
0 commit comments