summary refs log tree commit diff stats
path: root/scripts/analyse-9p-simpletrace.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/analyse-9p-simpletrace.py
parent81489726ad8d9adc2710eb7acff8e3d9c056dbdb (diff)
downloadfocaccia-qemu-cb282e556acef3764adde88701ec923a0731bc56.tar.gz
focaccia-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/analyse-9p-simpletrace.py')
0 files changed, 0 insertions, 0 deletions