~ubuntu-branches/ubuntu/intrepid/slurm-llnl/intrepid-security

« back to all changes in this revision

Viewing changes to src/slurmd/slurmd/slurmd.c

  • Committer: Bazaar Package Importer
  • Author(s): Jamie Strandboge
  • Date: 2009-10-07 06:51:11 UTC
  • Revision ID: james.westby@ubuntu.com-20091007065111-bn4scjyrxifh9ze3
Tags: 1.3.6-1lenny3build0.8.10.1
fake sync from Debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
161
161
                (void) close(i);
162
162
 
163
163
        /*
 
164
         * Drop supplementary groups.
 
165
         */
 
166
        if (geteuid() == 0) {
 
167
                if (setgroups(0, NULL) != 0) {
 
168
                        fatal("Failed to drop supplementary groups, "
 
169
                              "setgroups: %m");
 
170
                }
 
171
        } else {
 
172
                info("Not running as root. Can't drop supplementary groups");
 
173
        }
 
174
 
 
175
        /*
164
176
         * Create and set default values for the slurmd global
165
177
         * config variable "conf"
166
178
         */