patchfindutils - Patches: patch #4340, Set ${NICE:0} value on "su...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #4340: Set ${NICE:0} value on "su command" clean environments

Submitted by:  None
Submitted on:  Wed 24 Aug 2005 12:35:31 PM UTC  
 
Category:  updatedb bugfix Priority:  3 - Low
Status:  Wont Do Privacy:  Public
Assigned to:  James Youngman <jay> Originator Name: 
Originator Email:  -email is unavailable- Open/Closed:  Closed
Release:  None Fixed Release:  None

Thu 24 Nov 2005 04:37:31 AM UTC, comment #5: 

 <a href='http://mamba.dynu.net/kozel/hentai-big-tits.html'> http://mamba.dynu.net/kozel/hentai-big-tits.html - hentai big tits </a> http://mamba.dynu.net/kozel/hentai-big-tits.html
 <a href='http://pivasik.dynu.net/masterzone/asian-teen-pussy.html'> http://pivasik.dynu.net/masterzone/asian-teen-pussy.html - asian teen pussy </a> http://pivasik.dynu.net/masterzone/asian-teen-pussy.html
 <a href='http://mamba.dynu.net/door/bbw-escort-uk.html'> http://mamba.dynu.net/door/bbw-escort-uk.html - bbw escort uk </a> http://mamba.dynu.net/door/bbw-escort-uk.html
 <a href='http://mamba.dynu.net/vatnik/hermaphrodite-females.html'> http://mamba.dynu.net/vatnik/hermaphrodite-females.html - hermaphrodite females </a> http://mamba.dynu.net/vatnik/hermaphrodite-females.html
 <a href='http://wvvw.dynu.net/kozel/asian-big-tits.html'> http://wvvw.dynu.net/kozel/asian-big-tits.html - asian big tits </a> http://wvvw.dynu.net/kozel/asian-big-tits.html
 <a href='http://mamba.dynu.net/puzan/housewife-mature-free-pics.html'> http://mamba.dynu.net/puzan/housewife-mature-free-pics.html - housewife mature free pics </a> http://mamba.dynu.net/puzan/housewife-mature-free-pics.html
 <a href='http://wvvw.dynu.net/puzan/mature-woman-and-underage-boy-video.html'> http://wvvw.dynu.net/puzan/mature-woman-and-underage-boy-video.html - mature woman and underage boy video </a> http://wvvw.dynu.net/puzan/mature-woman-and-underage-boy-video.html
 <a href='http://wvvw.dynu.net/masterzone/chinese-porn.html'> http://wvvw.dynu.net/masterzone/chinese-porn.html - chinese porn </a> http://wvvw.dynu.net/masterzone/chinese-porn.html
 <a href='http://pivasik.dynu.net/masterzone/learning-the-techniques-of-japanese-bondage.html'> http://pivasik.dynu.net/masterzone/learning-the-techniques-of-japanese-bondage.html - learning the techniques of japanese bondage </a> http://pivasik.dynu.net/masterzone/learning-the-techniques-of-japanese-bondage.html
 <a href='http://mamba.dynu.net/kozel/tiny-little-tits-free-galleries.html'> http://mamba.dynu.net/kozel/tiny-little-tits-free-galleries.html - tiny little tits free galleries </a> http://mamba.dynu.net/kozel/tiny-little-tits-free-galleries.html
 <a href='http://mamba.dynu.net/puzan/naked-older-women-video.html'> http://mamba.dynu.net/puzan/naked-older-women-video.html - naked older women video </a> http://mamba.dynu.net/puzan/naked-older-women-video.html
 <a href='http://pivasik.dynu.net//nterracial-picture.html'> http://pivasik.dynu.net//nterracial-picture.html - nterracial picture </a> http://pivasik.dynu.net//nterracial-picture.html
 <a href='http://mamba.dynu.net/vatnik/erotic-stories-shemale.html'> http://mamba.dynu.net/vatnik/erotic-stories-shemale.html - erotic stories shemale </a> http://mamba.dynu.net/vatnik/erotic-stories-shemale.html
 <a href='http://mamba.dynu.net/vatnik/transgendered-halloween.html'> http://mamba.dynu.net/vatnik/transgendered-halloween.html - transgendered halloween </a> http://mamba.dynu.net/vatnik/transgendered-halloween.html
 <a href='http://pivasik.dynu.net/puzan/sexy-older-women-in-praise-of-older-women-free-amateur.html'> http://pivasik.dynu.net/puzan/sexy-older-women-in-praise-of-older-women-free-amateur.html - sexy older women in praise of older women free amateur </a> http://pivasik.dynu.net/puzan/sexy-older-women-in-praise-of-older-women-free-amateur.html
 <a href='http://pivasik.dynu.net/puzan/mature-xxx-forums.html'> http://pivasik.dynu.net/puzan/mature-xxx-forums.html - mature xxx forums </a> http://pivasik.dynu.net/puzan/mature-xxx-forums.html
 <a href='http://pivasik.dynu.net/green/blowjobs-teen.html'> http://pivasik.dynu.net/green/blowjobs-teen.html - blowjobs teen </a> http://pivasik.dynu.net/green/blowjobs-teen.html
 <a href='http://wvvw.dynu.net/puzan/young-and-mature-lesbians-having-sex.html'> http://wvvw.dynu.net/puzan/young-and-mature-lesbians-having-sex.html - young and mature lesbians having sex </a> http://wvvw.dynu.net/puzan/young-and-mature-lesbians-having-sex.html
 <a href='http://pivasik.dynu.net/vatnik/from-male-to-hermaphrodite.html'> http://pivasik.dynu.net/vatnik/from-male-to-hermaphrodite.html - from male to hermaphrodite </a> http://pivasik.dynu.net/vatnik/from-male-to-hermaphrodite.html
 <a href='http://mamba.dynu.net/vatnik/sheboy-dick.html'> http://mamba.dynu.net/vatnik/sheboy-dick.html - sheboy dick </a> http://mamba.dynu.net/vatnik/sheboy-dick.html
 <a href='http://wvvw.dynu.net/kozel/japanese-big-breast.html'> http://wvvw.dynu.net/kozel/japanese-big-breast.html - japanese big breast </a> http://wvvw.dynu.net/kozel/japanese-big-breast.html
 <a href='http://wvvw.dynu.net//anal-destruction-interracial.html'> http://wvvw.dynu.net//anal-destruction-interracial.html - anal destruction interracial </a> http://wvvw.dynu.net//anal-destruction-interracial.html
 <a href='http://wvvw.dynu.net/green/loni-sanders-cum-shots.html'> http://wvvw.dynu.net/green/loni-sanders-cum-shots.html - loni sanders cum shots </a> http://wvvw.dynu.net/green/loni-sanders-cum-shots.html
 <a href='http://mamba.dynu.net/puzan/gallery-of-mature-women.html'> http://mamba.dynu.net/puzan/gallery-of-mature-women.html - gallery of mature women </a> http://mamba.dynu.net/puzan/gallery-of-mature-women.html
 <a href='http://wvvw.dynu.net/masterzone/chinese-cultural-revolution.html'> http://wvvw.dynu.net/masterzone/chinese-cultural-revolution.html - chinese cultural revolution </a> http://wvvw.dynu.net/masterzone/chinese-cultural-revolution.html
 <a href='http://pivasik.dynu.net/vatnik/free-shemale-drawings.html'> http://pivasik.dynu.net/vatnik/free-shemale-drawings.html - free shemale drawings </a> http://pivasik.dynu.net/vatnik/free-shemale-drawings.html
 <a href='http://pivasik.dynu.net/puzan/pics-of-women.html'> http://pivasik.dynu.net/puzan/pics-of-women.html - pics of women </a> http://pivasik.dynu.net/puzan/pics-of-women.html
 <a href='http://pivasik.dynu.net/kozel/engorged-breasts.html'> http://pivasik.dynu.net/kozel/engorged-breasts.html - engorged breasts </a> http://pivasik.dynu.net/kozel/engorged-breasts.html
 <a href='http://mamba.dynu.net/door/fat-ebony-pussy.html'> http://mamba.dynu.net/door/fat-ebony-pussy.html - fat ebony pussy </a> http://mamba.dynu.net/door/fat-ebony-pussy.html
 <a href='http://pivasik.dynu.net/puzan/horney-old-women.html'> http://pivasik.dynu.net/puzan/horney-old-women.html - horney old women </a> http://pivasik.dynu.net/puzan/horney-old-women.html
 <a href='http://wvvw.dynu.net/kozel/free-big-boobs-seach-engines.html'> http://wvvw.dynu.net/kozel/free-big-boobs-seach-engines.html - free big boobs seach engines </a> http://wvvw.dynu.net/kozel/free-big-boobs-seach-engines.html
WBR XNYsMlqmiHSQzkrVb

Anonymous
Sat 03 Sep 2005 10:30:59 AM UTC, comment #4: 

In view of Andreas's comment, I plan not to apply a patch to work around the problem.

James Youngman <jay>
Project AdministratorIn charge of this item.
Thu 01 Sep 2005 05:21:44 PM UTC, comment #3: 

> When cron (in debian) starts the find job (present in
> /etc/cron.daily/),

[...]
[nice not inherited]

I do not think the correct way to fix this is in find. It caused by pam_limits.so always resetting the nice value, which it should not.

This was reported as http://bugs.debian.org/316930 and the corrsponding report against PAM is http://bugs.debian.org/241663
The latter one is lingering, but I hope it will be dealt with, once PAM's maintance catches up.
           cu andreas

Andreas Metzler <ametzler>
Wed 31 Aug 2005 07:30:54 PM UTC, comment #2: 

When cron (in debian) starts the find job (present in /etc/cron.daily/), this job calls updatedb. Then updatedb calls find in a command via su.

  su $LOCALUSER `select_shell $LOCALUSER` -c \                                     "$find $SEARCHPATHS $FINDOPTIONS etc etc etc

The resulting find only runs with the setted up nice value when this value is passed in $find explicity. Even when i set cron process to run with a lower nice value it does not inherit it.
An example:

nice -n 25 su testes mc

As root, It runs mc as user testes, but nice value is kept in 0.

Anonymous
Mon 29 Aug 2005 10:09:13 AM UTC, comment #1: 

The nice value should be inherited from the parent process, I think, like this:

$ nice ksh -c "sh -c \"sleep 1000\"" &
[1] 7091
$ jobs
[1]+  Running                 nice ksh -c "sh -c \"sleep 1000\"" &
$ ps -o pid,ppid,nice,args  -t
  PID  PPID  NI COMMAND
 7026  5125   0 bash
 7091  7026  10 ksh -c sh -c "sleep 1000"
 7092  7091  10 sleep 1000
 7093  7026   0 ps -o pid,ppid,nice,args -t

Could you give me a specific example demonstrating the problem that your change is intended to address?

James Youngman <jay>
Project AdministratorIn charge of this item.
Wed 24 Aug 2005 12:35:31 PM UTC, original submission:  

Without it, nice values in updatedb.conf does not afect cron.daily/find
@nice@ command needs to be set somewhere

Anonymous

 

Attached Files
file #9271:  updatedb.diff added by None (367B - text/x-diff - added @nice@ command and use it with find)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

 

 

Follow 5 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-09-03 jay StatusNone => Wont Do
    Open/ClosedOpen => Closed
2005-08-29 jay Assigned toNone => jay
2005-08-24 None Attached File- => Added updatedb.diff, #5064
    Carbon-Copy- => Added dick --AT-- inf --DOT-- ufsc --DOT-- br

Back to the top


Powered by Savane 3.5