The latest version uses the "try-and-see-what-you-get" approach.
If the scope is unconfined, the two directories below data_dir (unconfined/<scope_id>) are created automatically (if possible). If the directory exists, an attempt is made to create a tmp file. If that succeeds, the scope is unconfined. Otherwise, the scope is confined (leaf-net).
The click installation will have to create <data_dir>/leaf-net. If the scope's profile allows the scope to create <data_dir>/leaf-net/<scope_id>, it will do so. Otherwise, the click installation will have to create that directory for the scope.
The latest version uses the "try-and- see-what- you-get" approach.
If the scope is unconfined, the two directories below data_dir (unconfined/ <scope_ id>) are created automatically (if possible). If the directory exists, an attempt is made to create a tmp file. If that succeeds, the scope is unconfined. Otherwise, the scope is confined (leaf-net).
The click installation will have to create <data_dir> /leaf-net. If the scope's profile allows the scope to create <data_dir> /leaf-net/ <scope_ id>, it will do so. Otherwise, the click installation will have to create that directory for the scope.