summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/prserv
diff options
context:
space:
mode:
authorDiego Santa Cruz <Diego.SantaCruz@spinetix.com>2016-02-02 13:08:05 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-04 23:47:48 +0000
commit56454f6fb2aed2bbfd6e1c1759f15d97db086d90 (patch)
tree951d604351d503574aefb4203de330f0206d632e /bitbake/lib/prserv
parentabf8a8fbc35c8d45c2357701400477792e39f80e (diff)
downloadpoky-56454f6fb2aed2bbfd6e1c1759f15d97db086d90.tar.gz
bitbake: bitbake: prserv: do not clear umask when daemonizing
Clearing the umask when daemonizing is not the correct thing to do, as it will create files writable by anyone by default. For instance the pid file was being created with mode 777. This could also potentially affect the sqlite database. Better let the calling process decide on the umask. [YOCTO #9036] (Bitbake rev: ff6d3f53a4504eae7ec4c190b9f7595b09aed017) Signed-off-by: Diego Santa Cruz <Diego.SantaCruz@spinetix.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/prserv')
-rw-r--r--bitbake/lib/prserv/serv.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/bitbake/lib/prserv/serv.py b/bitbake/lib/prserv/serv.py
index 94d2abc15d..f588f4dc27 100644
--- a/bitbake/lib/prserv/serv.py
+++ b/bitbake/lib/prserv/serv.py
@@ -216,7 +216,6 @@ class PRServer(SimpleXMLRPCServer):
216 def cleanup_handles(self): 216 def cleanup_handles(self):
217 signal.signal(signal.SIGINT, self.sigint_handler) 217 signal.signal(signal.SIGINT, self.sigint_handler)
218 signal.signal(signal.SIGTERM, self.sigterm_handler) 218 signal.signal(signal.SIGTERM, self.sigterm_handler)
219 os.umask(0)
220 os.chdir("/") 219 os.chdir("/")
221 220
222 sys.stdout.flush() 221 sys.stdout.flush()