Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 11-02-2006, 04:41 PM   #1
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.

Old 11-03-2006, 08:59 AM   #2
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, 09:08 AM   #3
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.

Old 11-03-2006, 09:26 AM   #4
Registered: May 2001
Posts: 29,280
Blog Entries: 55

Rep: Reputation: 3515Reputation: 3515Reputation: 3515Reputation: 3515Reputation: 3515Reputation: 3515Reputation: 3515Reputation: 3515Reputation: 3515Reputation: 3515Reputation: 3515
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?


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 10:27 AM
help with policy based routing GaijinPunch Linux - Networking 4 06-19-2005 06:35 PM
Cannot adjust date & time, KDE Control Module error /home/kyle Linux - Software 1 03-10-2004 12:56 PM
traffic- flow control (speed)&(access) N_A_J_M Linux - General 2 08-22-2003 08:29 AM
modify file access & modify timestamps i2itstud Linux - General 1 05-20-2003 03:34 AM

All times are GMT -5. The time now is 06:54 PM.

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