Skip to content

Commit be884a5

Browse files
committed
Skip nodev mount option for polyinstantiated dirs
Skip attempting to set `nodev` mount option for polyinstantiated /tmp and /var/tmp mounts when enabled
1 parent de118d6 commit be884a5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • linux_os/guide/system/permissions/partitions/mount_option_nodev_nonroot_local_partitions/ansible

linux_os/guide/system/permissions/partitions/mount_option_nodev_nonroot_local_partitions/ansible/shared.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@
4343
- "item.mount is match('/\\w')"
4444
- "item.options is not search('nodev')"
4545
- "item.fstype not in excluded_fstypes"
46+
# Attempting to change polyinstantiated mounts for /tmp and /var/tmp, if present, will fail
47+
- "not accounts_polyinstantiated_var_tmp or item.mount != '/var/tmp/tmp-inst'"
48+
- "not accounts_polyinstantiated_tmp or item.mount != '/tmp/tmp-inst'"
4649
with_items:
4750
- "{{ ansible_facts.mounts }}"
4851

0 commit comments

Comments
 (0)