| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * fs/kernfs/symlink.c - kernfs symlink implementation |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (c) 2001-3 Patrick Mochel |
|---|
| 5 | 6 | * Copyright (c) 2007 SUSE Linux Products GmbH |
|---|
| 6 | 7 | * Copyright (c) 2007, 2013 Tejun Heo <tj@kernel.org> |
|---|
| 7 | | - * |
|---|
| 8 | | - * This file is released under the GPLv2. |
|---|
| 9 | 8 | */ |
|---|
| 10 | 9 | |
|---|
| 11 | 10 | #include <linux/fs.h> |
|---|
| .. | .. |
|---|
| 33 | 32 | kgid_t gid = GLOBAL_ROOT_GID; |
|---|
| 34 | 33 | |
|---|
| 35 | 34 | if (target->iattr) { |
|---|
| 36 | | - uid = target->iattr->ia_iattr.ia_uid; |
|---|
| 37 | | - gid = target->iattr->ia_iattr.ia_gid; |
|---|
| 35 | + uid = target->iattr->ia_uid; |
|---|
| 36 | + gid = target->iattr->ia_gid; |
|---|
| 38 | 37 | } |
|---|
| 39 | 38 | |
|---|
| 40 | 39 | kn = kernfs_new_node(parent, name, S_IFLNK|S_IRWXUGO, uid, gid, |
|---|
| .. | .. |
|---|
| 54 | 53 | kernfs_put(kn); |
|---|
| 55 | 54 | return ERR_PTR(error); |
|---|
| 56 | 55 | } |
|---|
| 57 | | -EXPORT_SYMBOL_GPL(kernfs_create_link); |
|---|
| 58 | 56 | |
|---|
| 59 | 57 | static int kernfs_get_target_path(struct kernfs_node *parent, |
|---|
| 60 | 58 | struct kernfs_node *target, char *path) |
|---|