def require_root(fn):
@wraps(fn)<EOL>def xex(*args, **kwargs):<EOL><INDENT>assert os.geteuid() == <NUM_LIT:0>,"<STR_LIT>" % fn.__name__<EOL>return fn(*args, **kwargs)<EOL><DEDENT>return xex<EOL>
Decorator to make sure, that user is root.