Commits

Michał Górny committed da8106f

Get out of unreadable directories when dropping privs.

  • Participants
  • Parent commits 0fbfdd1

Comments (0)

Files changed (1)

File SmartLiveRebuild/core.py

 		if not childpid:
 			if childpid == 0:
 				os.close(commpipe[0])
+				# Make sure CWD will be readable to portage user
+				os.chdir('/')
 				os.setuid(portage_uid)
 			if opts.type:
 				allowed = frozenset(opts.type)