Moved them into the setgid server since they need to access kvm data.
1999-05-08 Martin Baulig <martin@home-of-linux.org> * shm_limits.c, msg_limits.c, sem_limits.c: Moved them into the setgid server since they need to access kvm data. * open_suid.c, close_suid.c: New file. We do the initialization and cleanup for the setgid server here. * glibtop_suid.h: New file. We include this in the setgid files. * open.c: Moved kvm opening code into open_suid.c.
This commit is contained in:
committed by
Martin Baulig
parent
3a7d7778a0
commit
e8a3a40691
@@ -38,7 +38,7 @@ static const unsigned long _glibtop_sysdeps_sem_limits =
|
||||
/* Init function. */
|
||||
|
||||
void
|
||||
glibtop_init_sem_limits_s (glibtop *server)
|
||||
glibtop_init_sem_limits_p (glibtop *server)
|
||||
{
|
||||
kvm_t *kd = server->machine.kd;
|
||||
|
||||
@@ -51,7 +51,7 @@ glibtop_init_sem_limits_s (glibtop *server)
|
||||
/* Provides information about sysv sem limits. */
|
||||
|
||||
void
|
||||
glibtop_get_sem_limits_s (glibtop *server, glibtop_sem_limits *buf)
|
||||
glibtop_get_sem_limits_p (glibtop *server, glibtop_sem_limits *buf)
|
||||
{
|
||||
kvm_t *kd = server->machine.kd;
|
||||
struct seminfo sinfo;
|
||||
|
Reference in New Issue
Block a user