LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   using sys_chmod (https://www.linuxquestions.org/questions/linux-newbie-8/using-sys_chmod-944840/)

greplinux 05-14-2012 03:41 AM

using sys_chmod
 
Hi,

I am trying to use sys_chmod in my kernel module to change the permission of a file. But i am getting sys_chmod undefined error, while trying to compile.

Googled for this, but not able to get this resolved. Are there any steps we should follow inorder to use sys_chmod?

My linux kernel version is 2.6.24.

Thanks,

Satyaveer Arya 05-14-2012 04:55 AM

You provides less information. You need to be more specific. What command you tried to compile, which OS you're using, etc.?

greplinux 05-14-2012 05:21 AM

Its a Linux kernel loadable module. I think, i have already mentioned the version details. Please let me know what other information you needed.

Thanks,

Satyaveer Arya 05-14-2012 05:38 AM

What have you tried so far and what errors are you getting?

greplinux 05-14-2012 07:00 AM

Hi Arya,


I am trying to use sys_chmod function call in my Linux kernel module. While compiling that source, I am getting 'sys_chmod' undefined symbol error. I would like to know the method to follow to achieve this. Please let me know if you need any more info.

Thanks,

pan64 05-14-2012 07:23 AM

you know posting an error message alone is not a good idea. You would better post also your files or links (if they available on the net), the commands and the whole output.
I think this time you missed an #include somewhere, but I'm not really sure, there can be other problem as well.

Satyaveer Arya 05-15-2012 02:02 AM

In simple terms, post all the commands you tried and their outputs here.


All times are GMT -5. The time now is 07:59 PM.