How can i call a function which is usually used by root?

wk 304702903 at qq.com
Tue Dec 2 09:21:24 UTC 2008


I want write a c program.And a common user(not in root group) will run this program.
 In this program,I call fread(/dev/sdc...) and fwrite(/dev/sdc),but this call will return "permission no allow".If I use the root user,will be ok.
 How to change to the authority to root's?
 
 I know the  root's password.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/selinux/attachments/20081202/90e61f75/attachment.html 


More information about the selinux mailing list