/usr/share/pyshared/fusil/unsafe.py is in fusil 1.4-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | from ptrace.os_tools import RUNNING_WINDOWS
SUPPORT_UID = not RUNNING_WINDOWS
if SUPPORT_UID:
from os import getuid
def permissionHelp(options):
"""
On "Operation not permitted error", propose some help to fix this problem.
Example: "retry as root".
"""
if not SUPPORT_UID:
return None
help = []
if getuid() != 0:
help.append('retry as root')
if not options.unsafe:
help.append('use --unsafe option')
if not help:
return None
return ' or '.join(help)
|