diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-11-18 22:28:51 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-11-18 22:28:51 +0100 |
commit | 1a57451434b9941ea5497dba9017b715826608fd (patch) | |
tree | 4aa3e6d7aea29d91012e2822a78ccf743b060716 /src/security.h | |
parent | m (diff) | |
download | libpassphrase-1a57451434b9941ea5497dba9017b715826608fd.tar.gz libpassphrase-1a57451434b9941ea5497dba9017b715826608fd.tar.bz2 libpassphrase-1a57451434b9941ea5497dba9017b715826608fd.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/security.h')
-rw-r--r-- | src/security.h | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/src/security.h b/src/security.h index 5e291ff..3a218d9 100644 --- a/src/security.h +++ b/src/security.h @@ -16,24 +16,10 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include <unistd.h> -#include <sys/stat.h> -#include <stdio.h> -#include <termios.h> -#include <fcntl.h> -#include <signal.h> -#include <string.h> -#include <stropts.h> -#include <linux/vt.h> +#ifndef __SECURITY_H__ +#define __SECURITY_H__ - -#ifndef TTY_PERM -#define TTY_PERM 0600 -#endif - -#ifndef FAILURE_SLEEP -#define FAILURE_SLEEP 5 -#endif +#include <sys/types.h> /** @@ -50,5 +36,8 @@ void secure_tty(gid_t group); * @param group The group, -1 for unchanged * @param with_fail Abort on failure */ -void chown_tty(uid_t owner, gid_t group, int with_fail); +void chown_tty(uid_t owner, gid_t group, char with_fail); + + +#endif |