Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta
Commits
31ecef5a
Commit
31ecef5a
authored
Oct 24, 2014
by
Steven Murray
Browse files
Cleaner and label sessions now set their cap_sys_rawio process-capbailities
parent
26d057db
Changes
2
Hide whitespace changes
Inline
Side-by-side
castor/tape/tapeserver/daemon/CleanerSession.cpp
View file @
31ecef5a
...
...
@@ -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
);
...
...
castor/tape/tapeserver/daemon/LabelSession.cpp
View file @
31ecef5a
...
...
@@ -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
),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment