summaryrefslogtreecommitdiff
path: root/etc/glance/rootwrap.d/glance_cinder_store.filters
blob: 9aaf8b492b681ba869372a5f5695797db47abe93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# glance-rootwrap command filters for glance cinder store
# This file should be owned by (and only-writable by) the root user

[Filters]
# cinder store driver
disk_chown: RegExpFilter, chown, root, chown, \d+, /dev/(?!.*/\.\.).*

# os-brick library commands
# os_brick.privileged.run_as_root oslo.privsep context
# This line ties the superuser privs with the config files, context name,
# and (implicitly) the actual python code invoked.
privsep-rootwrap: RegExpFilter, privsep-helper, root, privsep-helper, --config-file, /etc/(?!\.\.).*, --privsep_context, os_brick.privileged.default, --privsep_sock_path, /tmp/.*

chown: CommandFilter, chown, root
mount: CommandFilter, mount, root
umount: CommandFilter, umount, root