62
62
SESSION_PURGE = 1 << 2 ///< The chroot should be purged.
68
VERBOSITY_QUIET, ///< Only print essential messages.
69
VERBOSITY_NORMAL, ///< Print messages (the default).
70
VERBOSITY_VERBOSE ///< Print all messages.
68
CHROOT_CREATE, ///< Chroot creation failed.
69
CHROOT_DEVICE, ///< Chroot device name not set.
70
CHROOT_TYPE, ///< Unknown chroot type.
71
DEVICE_ABS, ///< Device must have an absolute path.
72
DEVICE_LOCK, ///< Failed to lock device.
73
DEVICE_NOTBLOCK, ///< File is not a block device.
74
DEVICE_UNLOCK, ///< Failed to unlock device.
75
DIRECTORY_ABS, ///< Directory must have an absolute path.
76
FACET_INVALID, ///< Attempt to add object which is not a facet.
77
FACET_PRESENT, ///< Attempt to add facet which is already in use.
78
FILE_ABS, ///< File must have an absolute path.
79
FILE_LOCK, ///< Failed to acquire lock.
80
FILE_NOTREG, ///< File is not a regular file.
81
FILE_OWNER, ///< File is not owned by user root.
82
FILE_PERMS, ///< File has write permissions for others.
83
FILE_UNLOCK, ///< Failed to discard lock.
84
LOCATION_ABS, ///< Location must have an absolute path.
85
SESSION_UNLINK, ///< Failed to unlink session file.
86
SESSION_WRITE ///< Failed to write session file.
76
CHROOT_CREATE, ///< Chroot creation failed.
77
CHROOT_DEVICE, ///< Chroot device name not set.
78
CHROOT_TYPE, ///< Unknown chroot type.
79
DEVICE_ABS, ///< Device must have an absolute path.
80
DEVICE_LOCK, ///< Failed to lock device.
81
DEVICE_NOTBLOCK, ///< File is not a block device.
82
DEVICE_UNLOCK, ///< Failed to unlock device.
83
DIRECTORY_ABS, ///< Directory must have an absolute path.
84
FACET_INVALID, ///< Attempt to add object which is not a facet.
85
FACET_PRESENT, ///< Attempt to add facet which is already in use.
86
FILE_ABS, ///< File must have an absolute path.
87
FILE_LOCK, ///< Failed to acquire lock.
88
FILE_NOTREG, ///< File is not a regular file.
89
FILE_OWNER, ///< File is not owned by user root.
90
FILE_PERMS, ///< File has write permissions for others.
91
FILE_UNLOCK, ///< Failed to discard lock.
92
LOCATION_ABS, ///< Location must have an absolute path.
93
SESSION_UNLINK, ///< Failed to unlink session file.
94
SESSION_WRITE, ///< Failed to write session file.
95
VERBOSITY_INVALID ///< Message verbosity is invalid.
89
98
/// Exception type.
343
352
set_aliases (string_list const& aliases);
355
* Check if the environment should be preserved in the chroot.
357
* @returns true to preserve or false to clean.
360
get_preserve_environment () const;
363
* Set if the environment should be preserved in the chroot.
365
* @param preserve_environment true to preserve or false to clean.
368
set_preserve_environment (bool preserve_environment);
346
371
* Get the environment filter of the chroot. This is a POSIX
347
372
* extended regular expression used to remove insecure environment
348
373
* variables from the chroot environment.
445
470
set_command_prefix (string_list const& command_prefix);
473
* Get the message verbosity.
475
* Returns the verbosity level.
478
get_verbosity () const;
481
* Get the message verbosity.
483
* Returns the verbosity level.
486
get_verbosity_string () const;
489
* Set the message verbosity.
491
* @param verbosity the verbosity level.
494
set_verbosity (verbosity verbosity);
497
* Set the message verbosity.
499
* @param verbosity the verbosity level.
502
set_verbosity (std::string const& verbosity);
448
505
* Get the type of the chroot.
450
507
* @returns the chroot type.