We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b690668 commit 6256d23Copy full SHA for 6256d23
kernel/acct.c
@@ -501,7 +501,7 @@ static void do_acct_process(struct bsd_acct_struct *acct)
501
flim = rlimit(RLIMIT_FSIZE);
502
current->signal->rlim[RLIMIT_FSIZE].rlim_cur = RLIM_INFINITY;
503
/* Perform file operations on behalf of whoever enabled accounting */
504
- orig_cred = override_creds(get_new_cred(file->f_cred));
+ orig_cred = override_creds(file->f_cred);
505
506
/*
507
* First check to see if there is enough free_space to continue
@@ -541,7 +541,7 @@ static void do_acct_process(struct bsd_acct_struct *acct)
541
}
542
out:
543
current->signal->rlim[RLIMIT_FSIZE].rlim_cur = flim;
544
- put_cred(revert_creds(orig_cred));
+ revert_creds(orig_cred);
545
546
547
/**
0 commit comments