~ubuntu-branches/ubuntu/saucy/slurm-llnl/saucy

« back to all changes in this revision

Viewing changes to src/slurmctld/proc_req.c

  • Committer: Bazaar Package Importer
  • Author(s): Gennaro Oliva
  • Date: 2008-12-03 11:56:28 UTC
  • mfrom: (1.1.8 upstream) (3.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20081203115628-93t417da6wkazmo5
Tags: 1.3.11-1
New upstream release 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1861
1861
        /* return result */
1862
1862
        if (error_code || (job_ptr == NULL)) {
1863
1863
                unlock_slurmctld(job_read_lock);
1864
 
                debug2("_slurm_rpc_step_layout: JobId=%u, uid=%u: %s",
1865
 
                        req->job_id, uid, 
1866
 
                        slurm_strerror(error_code));
 
1864
                if (error_code == ESLURM_ACCESS_DENIED) {
 
1865
                        error("Security vioation, REQUEST_STEP_LAYOUT for "
 
1866
                              "JobId=%u from uid=%u", req->job_id, uid);
 
1867
                } else {
 
1868
                        debug2("_slurm_rpc_step_layout: JobId=%u, uid=%u: %s",
 
1869
                                req->job_id, uid, 
 
1870
                                slurm_strerror(error_code));
 
1871
                }
1867
1872
                slurm_send_rc_msg(msg, error_code);
1868
1873
                return;
1869
1874
        }
2987
2992
        START_TIMER;
2988
2993
        debug2("Processing RPC: ACCOUNTING_FIRST_REG from uid=%u",
2989
2994
                (unsigned int) uid);
2990
 
        if (!validate_super_user(uid)) {
2991
 
                error("Update Association request from non-super user uid=%d", 
 
2995
        if (!validate_super_user(uid) 
 
2996
            && (assoc_mgr_get_admin_level(acct_db_conn, uid)
 
2997
                < ACCT_ADMIN_SUPER_USER)) {
 
2998
                error("First Registration request from non-super user uid=%d", 
2992
2999
                      uid);
2993
3000
                return;
2994
3001
        }
2995
 
 
 
3002
        
2996
3003
        send_jobs_to_accounting(event_time);
2997
3004
        send_nodes_to_accounting(event_time);
2998
3005