[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

ck-collect-session-info coredumps on kFreeBSD (Re: Some QA of Wheezy kfreebsd-amd64 binaries)



tags 570015 -help
found 570015 0.4.5-3
--

On Sun, 22 Jul 2012, Steven Chamberlain wrote:
As a quick and random test, I installed all tasksel options of
kfreebsd-amd64, and executed each binary from {,/usr}/[s]bin as a
non-privileged user inside a jail.

These next two are odd, as they appear to be daemons running as uid 0.
...
But this one was definitely triggered by something in /bin or /sbin
being run as uid 1000:

pid 25310 (ck-collect-session-), uid 0: exited on signal 11

It is long known problem - see #570015.
The fix is really simple and waits for very long :-(
Petr


--- consolekit/src/ck-sysdeps-freebsd.c
+++ consolekit/src/ck-sysdeps-freebsd.c
@@ -261,6 +261,8 @@
         for (i = 0; penv[i] != NULL; i++) {
                 char **vals;

+                if (!penv[i][0]) continue;
+
                 vals = g_strsplit (penv[i], "=", 2);
                 if (vals != NULL) {
                         g_hash_table_insert (hash,




Reply to: