Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
c262e8ad
Commit
c262e8ad
authored
20 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
Update security tests for changes in RPM data structures.
parent
d1a10cc0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
testsuite/slurm_unit/slurmctld/security_2_1.csh
+6
-6
6 additions, 6 deletions
testsuite/slurm_unit/slurmctld/security_2_1.csh
testsuite/slurm_unit/slurmd/security_3_1.c
+5
-1
5 additions, 1 deletion
testsuite/slurm_unit/slurmd/security_3_1.c
with
11 additions
and
7 deletions
testsuite/slurm_unit/slurmctld/security_2_1.csh
+
6
−
6
View file @
c262e8ad
...
...
@@ -2,7 +2,7 @@
setenv CONFIG /etc/slurm/slurm.conf
setenv DEPLOY /usr
echo "Insure that files are not user writable"
echo "Insure that
executable
files are not user writable"
ls -ld $DEPLOY/bin/srun
ls -ld $DEPLOY/bin/sinfo
ls -ld $DEPLOY/bin/squeue
...
...
@@ -21,18 +21,18 @@ grep JobCredential $CONFIG
ls -ld /etc/slurm/slurm.key
ls -ld /etc/slurm/slurm.cert
echo "Plugin directory and its contents must be non-writable"
grep PluginDir $CONFIG
ls -ld /usr/lib/slurm
ls -l /usr/lib/slurm
grep Prioritize $CONFIG
#echo "Prioritize will move to a plugin"
grep Prolog $CONFIG
#ls -ld /admin/sbin/slurm.prolog
echo "Spool and log files must be non-writeable"
grep SlurmdSpoolDir $CONFIG
ls -ld /tmp/slurmd
ls -ld /var/spool/slurm
grep StateSaveLocation $CONFIG
ls -ld /usr/local/tmp/slurm/adev
grep SlurmctldLogFile $CONFIG
ls -ld /var/log/slurm/slurmctld.log
This diff is collapsed.
Click to expand it.
testsuite/slurm_unit/slurmd/security_3_1.c
+
5
−
1
View file @
c262e8ad
...
...
@@ -23,7 +23,7 @@ int main(int argc, char *argv[])
{
batch_job_launch_msg_t
launch_msg
;
int
uid
;
uint32_t
jid
;
uint32_t
jid
,
cpu_arr
[
1
]
;
if
(
argc
!=
2
)
{
_usage
(
argv
[
0
]);
...
...
@@ -40,6 +40,10 @@ int main(int argc, char *argv[])
launch_msg
.
job_id
=
jid
;
launch_msg
.
uid
=
uid
;
launch_msg
.
nodes
=
argv
[
1
];
launch_msg
.
num_cpu_groups
=
1
;
cpu_arr
[
0
]
=
1
;
launch_msg
.
cpus_per_node
=
cpu_arr
;
launch_msg
.
cpu_count_reps
=
cpu_arr
;
launch_msg
.
err
=
"/dev/null"
;
launch_msg
.
in
=
"/dev/null"
;
launch_msg
.
out
=
"/dev/null"
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment