
4.5 Checkpoint: checking the ACL 


asmlinkage long sys_chmod(const char * filename, mode_t mode)
{
....
ifdef CONFIG_LIDS
        if( lids_load && (nd.dentry != NULL) && lids_local_load) {
                if (lids_check_base(nd.dentry,LIDS_WRITE)) {
                        lids_security_alert("Attempt to chmod %.1024s to mode %o", filename,mode);
                        error=-EPERM;
                        goto dput_and_out;
                }
.....
endif


