/*
SSSD
Session recording utilities
Authors:
Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com>
Copyright (C) 2017 Red Hat
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program 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 General Public License for more details.
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 "util/session_recording.h"
#include <string.h>
#include <errno.h>
#include <unistd.h>
struct confdb_ctx *cdb,
struct session_recording_conf *pconf)
{
int ret;
char *str;
struct stat s;
goto done;
}
/* Read session_recording/scope option */
} else {
"Unknown value for session recording scope: %s\n",
str);
goto done;
}
/* If session recording is enabled at all */
/* Check that the shell exists and is executable */
if (ret != 0) {
switch (errno) {
case ENOENT:
"Session recording shell \"%s\" not found\n",
goto done;
case EOK:
"Session recording shell \"%s\" is not executable\n",
goto done;
}
break;
default:
"Failed checking for session recording shell "
"\"%s\": %s\n",
goto done;
}
}
}
/* Read session_recording/users option */
/* Read session_recording/groups option */
done:
return ret;
}