next up previous contents
Next: LIDS-free sessions implementation Up: Most important data structures Previous: lids_caps_s   Contents

lids_lfs_s

typedef struct lids_prog_struct {
        lids_lds_s *next;
	task_struct *task;
	int tag;
} lids_prog_s;

We can see how these structures are linked in memory on figure [*].

Figure: Link between data structures
\includegraphics[width=\linewidth]{fig/ds_conf.eps}

The figure [*] shows only the lids_prog_s structure links, for the example of the figure [*]. We imagine that /usr/bin, /etc/init.d and /sbin have the same image through the hash function. Idem for /usr/X11/bin/XF86 and /bin.

Figure: Program structures in memory for fig. [*]
\includegraphics[width=\linewidth]{fig/ds_ex1.eps}

If we focus on the two permissions sets of the figure [*], and take in account the inheritance of /usr/bin permissions by /usr/bin/httpd, we can have the structures arrangement in memory as shown in figure [*]. The inheritance is effective thanks to the bold arrow.

Figure: Program structures in memory
\includegraphics[width=\linewidth]{fig/ds_ex2.eps}



Biondi Philippe 2000-12-15