Lines Matching refs:constants
8 import common, constants
275 if os.path.exists(os.path.join(constants.SHADOW_ROOT, user_hash)):
284 for item in os.listdir(constants.SHADOW_ROOT):
285 abs_item = os.path.join(constants.SHADOW_ROOT, item)
308 if not os.path.exists(os.path.join(constants.SHADOW_ROOT, user_hash)):
318 if os.path.exists(os.path.join(constants.SHADOW_ROOT, user_hash)):
428 constants.CRYPTOHOME_FS_REGEX_ANY :
429 constants.CRYPTOHOME_DEV_REGEX_ANY
455 if (re.match(constants.CRYPTOHOME_FS_REGEX_EXT4, mount_info[2])
456 and not(re.match(constants.CRYPTOHOME_DEV_REGEX_LOOP_DEVICE,
483 constants.CRYPTOHOME_FS_REGEX_EXT4 :
484 constants.CRYPTOHOME_DEV_REGEX_LOOP_DEVICE,
485 constants.CRYPTOHOME_FS_REGEX_TMPFS :
486 constants.CRYPTOHOME_DEV_REGEX_GUEST,
495 constants.CRYPTOHOME_FS_REGEX_ECRYPTFS :
496 constants.CRYPTOHOME_DEV_REGEX_REGULAR_USER_SHADOW,
497 constants.CRYPTOHOME_FS_REGEX_EXT4 :
498 constants.CRYPTOHOME_DEV_REGEX_REGULAR_USER_DEVICE,
504 return os.path.join(constants.SHADOW_ROOT, get_user_hash(user), 'mount')
525 if (domain == constants.SPECIAL_CASE_DOMAIN):
569 constants.CRYPTOHOME_FS_REGEX_ECRYPTFS :
570 constants.CRYPTOHOME_DEV_REGEX_REGULAR_USER_SHADOW