Bug 200 - pbs_mkdirs chk_tree for checkpoint dir is wrong
: pbs_mkdirs chk_tree for checkpoint dir is wrong
Status: NEW
Product: TORQUE
clients
: 4.0.*
: All All
: P5 normal
Assigned To: Ken Nielson
:
:
:
  Show dependency treegraph
 
Reported: 2012-07-09 05:33 MDT by Bas van der Vlies
Modified: 2012-08-15 07:59 MDT (History)
1 user (show)

See Also:


Attachments
pbs_mkdir patch (1.44 KB, application/octet-stream)
2012-07-09 05:33 MDT, Bas van der Vlies
Details


Note

You need to log in before you can comment on or make changes to this bug.


Description Bas van der Vlies 2012-07-09 05:33:15 MDT
Created an attachment (id=109) [details]
pbs_mkdir patch

The checkpoint directory is made with the following permissions:
 *  install install_dir $PBS_SERVER_HOME/checkpoint 1777

But the security check for this directory is wrong:
 *  chk_tree_wrap -d -n $PBS_SERVER_HOME/checkpoint \

Error message:
{{{
chk_tree: Security violation with "/var/spool/torque/checkpoint" -
/var/spool/torque/checkpoint is world writable and not sticky: error #13:
(Permission denied)
}}}

the check must be:
 * chk_tree_wrap -d -n -s $PBS_SERVER_HOME/checkpoint \

The patch also include the fix for issue #199
Comment 1 Bas van der Vlies 2012-08-15 07:59:02 MDT
One part of this patch is committed. So any comment on ths 'simple' patch?