Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:redwil:15.4
timer-entropyd
timer_entropyd-0.1-drop-capabilitites.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File timer_entropyd-0.1-drop-capabilitites.patch of Package timer-entropyd
--- Makefile.orig +++ Makefile @@ -9,7 +9,7 @@ OBJS=error.o kernel.o main.o math.o all: timer_entropyd timer_entropyd: $(OBJS) - $(CC) -Wall -W $(OBJS) $(LDFLAGS) -o timer_entropyd + $(CC) -Wall -W $(OBJS) -lcap-ng $(LDFLAGS) -o timer_entropyd install: timer_entropyd cp timer_entropyd /usr/local/sbin --- main.c.orig +++ main.c @@ -6,6 +6,7 @@ #include "error.h" #include "kernel.h" #include "math.h" +#include <cap-ng.h> double get_ts(void) { @@ -40,6 +41,9 @@ int main(int argc, char *argv[]) int bits = 0, index = 0; printf("timer_entropyd v" VERSION ", (C) 2009 by folkert@vanheusden.com\n\n"); + capng_clear(CAPNG_SELECT_BOTH); + capng_update(CAPNG_ADD, CAPNG_EFFECTIVE|CAPNG_PERMITTED, CAP_SYS_ADMIN); + capng_apply(CAPNG_SELECT_BOTH); if (daemon(-1, -1) == -1) error_exit("failed to become daemon process");
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor