isPrivilegedProcess property

bool get isPrivilegedProcess

True if the processes real uid is root.

Implementation

bool get isPrivilegedProcess {
  final uid = getuid();
  verbose(() => 'isPrivilegedProcess: uid=$uid');
  return uid == 0;
}