LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 11-02-2006, 05:41 PM   #1
avaleriu
LQ Newbie
 
Registered: Nov 2006
Location: Monterey, CA
Distribution: Ubuntu 6.06
Posts: 7

Rep: Reputation: 0
Need to modify chmod & mv to make use of a time-based access control policy


Greetings all,

A former student in my class designed a kernel module for time-based access control. Now my class has to go through the original Linux (FC4 or 5) binaries and modify them to make use of the changes. I have been assigned chmod and mv.

I am comfortable using Linux and the basics, but have never tried to modify the source. Where do I find the source for the distro, and once I have that, is there an easy way to find all the lines that pertain to my binaries? It may be apparent once I open up the source, but as I said I've never done that.

Thank you in advance for any help.

Andy
 
Old 11-03-2006, 09:59 AM   #2
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
Wow...that's pretty intense.

Well, if you already have the kernel sources, they will be located in /usr/src/linux. Keep in mind, the kernel isn't written in just C and/or C++, there's a bit of assembly in there, too.

 
Old 11-03-2006, 10:08 AM   #3
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 61
If I understand well, you won't have to touch anything in the kernel. Just download the source rpm for mv and chmod; the binary is: rpm -qf $(which mv) $(which chmod)

Good luck. That's not an easy work.

Yves.
 
Old 11-03-2006, 10:26 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,744
Blog Entries: 54

Rep: Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973Reputation: 2973
A former student in my class designed a kernel module for time-based access control.
Apologies for the OT post, but would it be possible to share any details about this?
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Timed based access restrictions with squid & danguardian keithdj Fedora 3 04-19-2006 11:27 AM
help with policy based routing GaijinPunch Linux - Networking 4 06-19-2005 07:35 PM
Cannot adjust date & time, KDE Control Module error /home/kyle Linux - Software 1 03-10-2004 01:56 PM
traffic- flow control (speed)&(access) N_A_J_M Linux - General 2 08-22-2003 09:29 AM
modify file access & modify timestamps i2itstud Linux - General 1 05-20-2003 04:34 AM


All times are GMT -5. The time now is 03:19 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration