LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-14-2012, 04:41 AM   #1
greplinux
Member
 
Registered: Jun 2007
Posts: 118

Rep: Reputation: 17
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,
 
Old 05-14-2012, 05:55 AM   #2
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
You provides less information. You need to be more specific. What command you tried to compile, which OS you're using, etc.?
 
Old 05-14-2012, 06:21 AM   #3
greplinux
Member
 
Registered: Jun 2007
Posts: 118

Original Poster
Rep: Reputation: 17
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,
 
Old 05-14-2012, 06:38 AM   #4
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
What have you tried so far and what errors are you getting?
 
Old 05-14-2012, 08:00 AM   #5
greplinux
Member
 
Registered: Jun 2007
Posts: 118

Original Poster
Rep: Reputation: 17
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,
 
Old 05-14-2012, 08:23 AM   #6
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,767

Rep: Reputation: 2886Reputation: 2886Reputation: 2886Reputation: 2886Reputation: 2886Reputation: 2886Reputation: 2886Reputation: 2886Reputation: 2886Reputation: 2886Reputation: 2886
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.
 
Old 05-15-2012, 03:02 AM   #7
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
In simple terms, post all the commands you tried and their outputs here.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration