#include <errno.h>
#include <string.h>
#include <sys/socket.h>
+#include <sys/stat.h>
#include <sys/types.h>
#include <sys/un.h>
cmd->boot_args = talloc_strdup(cmd, event_get_param(event, "args"));
}
- device_handler_boot(handler, cmd);
+ device_handler_boot(handler, false, cmd);
talloc_free(cmd);
strerror(errno));
}
+ /* Don't allow events from non-priviledged users */
+ chown(PBOOT_USER_EVENT_SOCKET, 0, 0);
+ chmod(PBOOT_USER_EVENT_SOCKET, 0660);
+
waiter_register_io(waitset, uev->socket, WAIT_IN,
user_event_process, uev);