Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cdrecord, suid and RLIMIT_MEMLOCK
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
spitzwegerich
l33t
l33t


Joined: 04 Mar 2003
Posts: 697
Location: Lower Bavaria, Central Europe

PostPosted: Thu Jan 31, 2008 9:21 pm    Post subject: cdrecord, suid and RLIMIT_MEMLOCK Reply with quote

Hello,

is it possible to use cdrecord without suid set and not to get the following warnings?

Code:

cdrecord: Operation not permitted. Warning: Cannot raise RLIMIT_MEMLOCK limits.cdrecord: Cannot allocate memory. WARNING: Cannot do mlockall(2).
cdrecord: WARNING: This causes a high risk for buffer underruns.
cdrecord: Operation not permitted. WARNING: Cannot set RR-scheduler
cdrecord: Permission denied. WARNING: Cannot set priority using setpriority().
cdrecord: WARNING: This causes a high risk for buffer underruns.
cdrecord: Permission denied. Cannot open '/dev/hda'. Cannot open or use SCSI driver.


To get rid of these warnings, I had to set the suid bit. But I really would prefer to achieve that with normal rights.
_________________
"Work is the curse of the drinking classes."
-Oskar Wilde
Back to top
View user's profile Send private message
spitzwegerich
l33t
l33t


Joined: 04 Mar 2003
Posts: 697
Location: Lower Bavaria, Central Europe

PostPosted: Mon Feb 04, 2008 10:32 am    Post subject: Reply with quote

bump
_________________
"Work is the curse of the drinking classes."
-Oskar Wilde
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5947

PostPosted: Mon Feb 04, 2008 10:34 am    Post subject: Reply with quote

Quote:
bunder ~ # which cdrecord
/usr/bin/cdrecord
bunder ~ # ls -l /usr/bin/cdrecord
lrwxrwxrwx 1 root root 14 Jul 8 2007 /usr/bin/cdrecord -> /usr/bin/wodim
bunder ~ # ls -l /usr/bin/wodim
-rws--x--x 1 root root 353536 Jul 8 2007 /usr/bin/wodim


suid sounds okay to me... :?
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum