Research
.
Skip Search Box

SELinux Mailing List

[SEMANAGE] Separate file rw code from linked list

From: Ivan Gyurdiev <ivg2_at_cornell.edu>
Date: Fri, 23 Dec 2005 01:32:20 -0500


This patch separates the file dbase read (cache) and write (flush) code, from the linked list that's used when the records are in memory. There's several ways to do this, and this patch uses inheritance to do it - dbase_llist becomes the (abstract) parent, and dbase_file inherits from it, by routing the method table appropriately.

The reason for this is two-fold:
1) To allow re-use of the linked list dbase elsewhere... (like in a join implementation, or the policy server, or somewhere else).

2) To make it easier to implement another in-memory data structure in the future (like a hashtable).

I'm not entirely sure if this patch gets all the details right, but I think the general idea is on the right track - the representation in memory, and how the data gets there should be separate.

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

Received on Fri 23 Dec 2005 - 03:33:04 EST
 

Date Posted: Jan 15, 2009 | Last Modified: Jan 15, 2009 | Last Reviewed: Jan 15, 2009

 
bottom

National Security Agency / Central Security Service