Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
d82d83bb
Commit
d82d83bb
authored
Mar 10, 2002
by
Alan Cox
Committed by
Linus Torvalds
Mar 10, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] 2.5.6-pre3 Fix BSD accounting rlimit
Fix rlimit on accounting file.
parent
1c7efed1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
kernel/acct.c
kernel/acct.c
+7
-0
No files found.
kernel/acct.c
View file @
d82d83bb
...
...
@@ -311,6 +311,7 @@ static void do_acct_process(long exitcode, struct file *file)
struct
acct
ac
;
mm_segment_t
fs
;
unsigned
long
vsize
;
unsigned
long
flim
;
/*
* First check to see if there is enough free_space to continue
...
...
@@ -372,8 +373,14 @@ static void do_acct_process(long exitcode, struct file *file)
*/
fs
=
get_fs
();
set_fs
(
KERNEL_DS
);
/*
* Accounting records are not subject to resource limits.
*/
flim
=
current
->
rlim
[
RLIMIT_FSIZE
].
rlim_cur
;
current
->
rlim
[
RLIMIT_FSIZE
].
rlim_cur
=
RLIM_INFINITY
;
file
->
f_op
->
write
(
file
,
(
char
*
)
&
ac
,
sizeof
(
struct
acct
),
&
file
->
f_pos
);
current
->
rlim
[
RLIMIT_FSIZE
].
rlim_cur
=
flim
;
set_fs
(
fs
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment