The default mode DTEvisual starts with allows users to drag the
existing nodes in a general graph to change their positons. Users need
to switch to other modes in order to add nodes/edges to a general
graph. This is done by selecting the desired mode from the
toolbar
. A domain/type node is added by clicking on the position
where users want to put it. A non-empty name is then required for the
newly-added node. To add an edge between two nodes, users need to drag
the mouse from one node to the other. Notice that no edge will be
added if users attempt to add a wrong type of edge between the two
nodes. For edges between domain nodes, a trigger whose format must
match the foramt of a Linux file name has to be specified;
for edges between domain nodes and type nodes, users need to specify
the valid permissions which should only contain the characters 'c',
'r', 'w', 'x' and 'd'. No duplicated edges are allowed between any two nodes.
Users can also delete and change the name of a node/edge in a general graph. This is done through the context menu of the node/edge. Once a node is deleted, all the edges adjacent to the node are also deleted. Users will be asked whether to proceed when they try to delete a type node because deleting a type node will affect the nodes in the type graph whose types are the one to be deleted.
The editing operations applicable to a node in type graphs include:
Change the type of /usr to dte_t
The type /usr/local is also
changed to dte_t
The type of '/etc' is changed
to 'generic_t' after its orignal type 'readable_t' is removed.