[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[BUG] priv-set on aix6.1
From: |
Gary V. Vaughan |
Subject: |
[BUG] priv-set on aix6.1 |
Date: |
Thu, 8 Jul 2010 21:55:56 +0700 |
I get a compilation failure in coreutils with the priv-set module
which correctly detects a getppriv() function, but then tries to use
it by including a non-existant <priv.h> header.
From priv-set.h:
#if HAVE_GETPPRIV
# include <priv.h>
From the aix manual page for getppriv:
Purpose
Gets a privilege set associated with a process.
Library
Security Library (libc.a)
Syntax
#include <sys/types.h>
#include <sys/priv.h>
int getppriv(pid, which, privset, privsize)
pid_t pid;
int which;
privg_t *privset;
int privset;
I guess the solution is to add checks for <priv.h>, <sys/priv.h>
headers and change priv-set.h to read as follows (or similar):
#if HAVE_GETPPRIV
# if HAVE_PRIV_H
# include <priv.h>
# else
# if HAVE_SYS_TYPES_H
# include <sys/types.h>
# endif
# if HAVE_SYS_PRIV_H
# include <sys/priv.h>
# endif
# endif
...
Cheers,
--
Gary V. Vaughan (address@hidden)
- [BUG] priv-set on aix6.1,
Gary V. Vaughan <=