2012-03-12 22:22:16 +01:00
|
|
|
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
|
|
|
|
|
2013-11-18 16:58:43 +01:00
|
|
|
#pragma once
|
2012-03-12 22:22:16 +01:00
|
|
|
|
|
|
|
/***
|
|
|
|
This file is part of systemd.
|
|
|
|
|
2012-04-10 13:39:02 +02:00
|
|
|
Copyright 2010 Lennart Poettering
|
2012-03-12 22:22:16 +01:00
|
|
|
|
|
|
|
systemd is free software; you can redistribute it and/or modify it
|
2012-04-12 00:20:58 +02:00
|
|
|
under the terms of the GNU Lesser General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2.1 of the License, or
|
2012-03-12 22:22:16 +01:00
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
systemd is distributed in the hope that it will be useful, but
|
|
|
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
2012-04-12 00:20:58 +02:00
|
|
|
Lesser General Public License for more details.
|
2012-03-12 22:22:16 +01:00
|
|
|
|
2012-04-12 00:20:58 +02:00
|
|
|
You should have received a copy of the GNU Lesser General Public License
|
2012-03-12 22:22:16 +01:00
|
|
|
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
***/
|
|
|
|
|
2015-03-10 01:02:59 +01:00
|
|
|
#include <stdbool.h>
|
2015-11-18 22:46:33 +01:00
|
|
|
#include <stdint.h>
|
2012-10-02 23:40:09 +02:00
|
|
|
#include <sys/types.h>
|
|
|
|
|
2015-04-29 21:40:54 +02:00
|
|
|
#define AUDIT_SESSION_INVALID ((uint32_t) -1)
|
2012-03-12 22:22:16 +01:00
|
|
|
|
2012-04-10 13:39:02 +02:00
|
|
|
int audit_session_from_pid(pid_t pid, uint32_t *id);
|
|
|
|
int audit_loginuid_from_pid(pid_t pid, uid_t *uid);
|
2014-11-03 21:09:38 +01:00
|
|
|
|
|
|
|
bool use_audit(void);
|