Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153444486
D28191.id82354.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
798 B
Referenced Files
None
Subscribers
None
D28191.id82354.diff
View Options
Index: sys/compat/linux/linux_stats.c
===================================================================
--- sys/compat/linux/linux_stats.c
+++ sys/compat/linux/linux_stats.c
@@ -60,7 +60,7 @@
#include <compat/linux/linux_file.h>
static void
-translate_vnhook_major_minor(struct vnode *vp, struct stat *sb)
+translate_vnhook(struct vnode *vp, struct stat *sb)
{
int major, minor;
@@ -82,6 +82,9 @@
if (linux_vn_get_major_minor(vp, &major, &minor) == 0)
sb->st_rdev = (major << 8 | minor);
+
+ if (S_ISLNK(sb->st_mode) && (vp->v_vflag & VV_READLINK) == 0)
+ sb->st_mode |= ACCESSPERMS;
}
static int
@@ -90,7 +93,7 @@
{
return (kern_statat(td, flag, fd, path, pathseg, sbp,
- translate_vnhook_major_minor));
+ translate_vnhook));
}
#ifdef LINUX_LEGACY_SYSCALLS
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 22, 5:22 AM (17 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31955553
Default Alt Text
D28191.id82354.diff (798 B)
Attached To
Mode
D28191: Linuxulator: fix symbol link file permissions returned by stat
Attached
Detach File
Event Timeline
Log In to Comment