• Home
  • Raw
  • Download

Lines Matching refs:nm

100 			const struct qstr *nm, const void *value, int size)  in create_xattr()  argument
118 nm->len + 1 > XATTR_LIST_MAX) in create_xattr()
152 host_ui->xattr_size += CALC_DENT_SIZE(nm->len); in create_xattr()
154 host_ui->xattr_names += nm->len; in create_xattr()
156 err = ubifs_jnl_update(c, host, nm, inode, 0, 1); in create_xattr()
168 host_ui->xattr_size -= CALC_DENT_SIZE(nm->len); in create_xattr()
252 static int check_namespace(const struct qstr *nm) in check_namespace() argument
256 if (nm->len > UBIFS_MAX_NLEN) in check_namespace()
259 if (!strncmp(nm->name, XATTR_TRUSTED_PREFIX, in check_namespace()
261 if (nm->name[sizeof(XATTR_TRUSTED_PREFIX) - 1] == '\0') in check_namespace()
264 } else if (!strncmp(nm->name, XATTR_USER_PREFIX, in check_namespace()
266 if (nm->name[XATTR_USER_PREFIX_LEN] == '\0') in check_namespace()
269 } else if (!strncmp(nm->name, XATTR_SECURITY_PREFIX, in check_namespace()
271 if (nm->name[sizeof(XATTR_SECURITY_PREFIX) - 1] == '\0') in check_namespace()
302 struct qstr nm = { .name = name, .len = strlen(name) }; in ubifs_setxattr() local
314 type = check_namespace(&nm); in ubifs_setxattr()
326 xent_key_init(c, &key, host->i_ino, &nm); in ubifs_setxattr()
327 err = ubifs_tnc_lookup_nm(c, &key, xent, &nm); in ubifs_setxattr()
336 err = create_xattr(c, host, &nm, value, size); in ubifs_setxattr()
365 struct qstr nm = { .name = name, .len = strlen(name) }; in ubifs_getxattr() local
374 err = check_namespace(&nm); in ubifs_getxattr()
382 xent_key_init(c, &key, host->i_ino, &nm); in ubifs_getxattr()
383 err = ubifs_tnc_lookup_nm(c, &key, xent, &nm); in ubifs_getxattr()
428 struct qstr nm = { .name = NULL }; in ubifs_listxattr() local
448 xent = ubifs_tnc_next_ent(c, &key, &nm); in ubifs_listxattr()
454 nm.name = xent->name; in ubifs_listxattr()
455 nm.len = le16_to_cpu(xent->nlen); in ubifs_listxattr()
457 type = check_namespace(&nm); in ubifs_listxattr()
465 memcpy(buffer + written, nm.name, nm.len + 1); in ubifs_listxattr()
466 written += nm.len + 1; in ubifs_listxattr()
485 struct inode *inode, const struct qstr *nm) in remove_xattr() argument
502 host_ui->xattr_size -= CALC_DENT_SIZE(nm->len); in remove_xattr()
504 host_ui->xattr_names -= nm->len; in remove_xattr()
506 err = ubifs_jnl_delete_xattr(c, host, inode, nm); in remove_xattr()
516 host_ui->xattr_size += CALC_DENT_SIZE(nm->len); in remove_xattr()
528 struct qstr nm = { .name = name, .len = strlen(name) }; in ubifs_removexattr() local
537 err = check_namespace(&nm); in ubifs_removexattr()
545 xent_key_init(c, &key, host->i_ino, &nm); in ubifs_removexattr()
546 err = ubifs_tnc_lookup_nm(c, &key, xent, &nm); in ubifs_removexattr()
561 err = remove_xattr(c, host, inode, &nm); in ubifs_removexattr()