Commit 31ecef5a authored by Steven Murray's avatar Steven Murray
Browse files

Cleaner and label sessions now set their cap_sys_rawio process-capbailities

parent 26d057db
......@@ -46,6 +46,14 @@ castor::tape::tapeserver::daemon::CleanerSession::CleanerSession(
//------------------------------------------------------------------------------
castor::tape::tapeserver::daemon::Session::EndOfSessionAction
castor::tape::tapeserver::daemon::CleanerSession::execute() {
m_capUtils.setProcText("cap_sys_rawio+ep");
{
log::Param params[] = {
log::Param("capabilities", m_capUtils.getProcText())};
m_log(LOG_INFO, "Cleaner session set process capabilities for using tape",
params);
}
castor::tape::SCSI::DeviceVector dv(m_sysWrapper);
castor::tape::SCSI::DeviceInfo driveInfo = dv.findBySymlink(m_driveConfig.devFilename);
......
......@@ -67,6 +67,14 @@ castor::tape::tapeserver::daemon::LabelSession::LabelSession(
castor::tape::tapeserver::daemon::Session::EndOfSessionAction
castor::tape::tapeserver::daemon::LabelSession::execute() {
try {
m_capUtils.setProcText("cap_sys_rawio+ep");
{
log::Param params[] = {
log::Param("capabilities", m_capUtils.getProcText())};
m_log(LOG_INFO, "Label session set process capabilities for using tape",
params);
}
log::Param params[] = {
log::Param("uid", m_request.uid),
log::Param("gid", m_request.gid),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment