aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/qapi/commands.py
diff options
context:
space:
mode:
authorVivek Goyal <vgoyal@redhat.com>2022-02-08 15:48:10 -0500
committerDr. David Alan Gilbert <dgilbert@redhat.com>2022-02-17 17:22:26 +0000
commitcb282e556acef3764adde88701ec923a0731bc56 (patch)
treee41f5d9b839a4f7d76f350f6e4a659e5856eff43 /scripts/qapi/commands.py
parentvirtiofsd: Move core file creation code in separate function (diff)
downloadqemu-cb282e556acef3764adde88701ec923a0731bc56.tar.xz
qemu-cb282e556acef3764adde88701ec923a0731bc56.zip
virtiofsd: Add helpers to work with /proc/self/task/tid/attr/fscreate
Soon we will be able to create and also set security context on the file atomically using /proc/self/task/tid/attr/fscreate knob. If this knob is available on the system, first set the knob with the desired context and then create the file. It will be created with the context set in fscreate. This works basically for SELinux and its per thread. This patch just introduces the helper functions. Subsequent patches will make use of these helpers. Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Signed-off-by: Vivek Goyal <vgoyal@redhat.com> Message-Id: <20220208204813.682906-8-vgoyal@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> dgilbert: Manually merged gettid syscall number fixup from Vivek
Diffstat (limited to 'scripts/qapi/commands.py')
0 files changed, 0 insertions, 0 deletions