Add dummy files to get correct tmproot parent permissions
This commit is contained in:
parent
9e9d6404ac
commit
df1febec6f
@ -150,6 +150,10 @@ in
|
|||||||
];
|
];
|
||||||
files = [
|
files = [
|
||||||
"/etc/machine-id"
|
"/etc/machine-id"
|
||||||
|
|
||||||
|
# Just to make sure we get correct default perms
|
||||||
|
"/var/lib/.tmproot.dummy"
|
||||||
|
"/var/cache/.tmproot.dummy"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -66,12 +66,15 @@ in
|
|||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
files = map (file: {
|
files = (map (file: {
|
||||||
inherit file;
|
inherit file;
|
||||||
parentDirectory = perms;
|
parentDirectory = perms;
|
||||||
}) [
|
}) [
|
||||||
"/home/${user'.name}/.bash_history"
|
"/home/${user'.name}/.bash_history"
|
||||||
"/home/${user'.name}/.lesshst"
|
"/home/${user'.name}/.lesshst"
|
||||||
|
]) ++ [
|
||||||
|
# Just to make sure we get correct default perms
|
||||||
|
"/home/.tmproot.dummy"
|
||||||
];
|
];
|
||||||
directories = map (directory: {
|
directories = map (directory: {
|
||||||
inherit directory;
|
inherit directory;
|
||||||
|
Loading…
Reference in New Issue
Block a user