Conversation
There was a problem hiding this comment.
Pull request overview
This pull request refactors the file wrapper implementation to use d_dname for forging paths, enabling compatibility with programs like screen that require valid tty paths. The changes consolidate file wrapper logic into file_wrapper.c and introduce custom dentry operations to provide proper path resolution.
Key changes:
- Introduces custom dentry operations (
d_dnameandd_release) to enable path resolution for wrapped file descriptors - Refactors file wrapper creation logic from
supercalls.cinto a new public functioninstall_file_wrapper()infile_wrapper.c - Makes previously exported wrapper functions (
ksu_create_file_wrapper,ksu_delete_file_wrapper) static to improve encapsulation
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 8 comments.
| File | Description |
|---|---|
| kernel/supercalls.c | Simplified do_get_wrapper_fd to delegate to new install_file_wrapper function; removed now-unnecessary objsec.h include |
| kernel/file_wrapper.h | Updated API to expose only install_file_wrapper, hiding internal implementation details |
| kernel/file_wrapper.c | Added dentry operations for path forging, moved wrapper installation logic from supercalls.c, made helper functions static |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
153c9b3 to
3accc70
Compare
030ed01 to
486c2e6
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated 7 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This commit adds compat to tiann#3070 while backporting alloc_file_pseudo is fine and all, this just becomes a cascade once we go to UL - alloc_file_pseudo, 4.19 - alloc_anon_inode, 3.13 - new_inode_pseudo, 3.1 this becomes shit so fast when this one just works. I dunno the implications, who cares, its legacy shit. context_inode is NULL on anon_inode_getfile_secure call here so its not that important ref: torvalds/linux@91a9ab7 this also removes lsm notification it does when inode is being created. not really needed. tests: sunny:/ $ su root@localhost:[~]:# screen [screen is terminating] root@localhost:[~]:# echo 3070 > /proc/self/fd/0 3070 root@localhost:[~]:# uname -vr 4.14.356+12-mojito/14e8dc1 #0 SMP PREEMPT Wed Dec 17 19:08:23 PST 2025 devlog tiann@cf72948 * tiann@fe0d4b5 tiann@8ba2e35 Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
This commit adds compat to tiann#3070 while backporting alloc_file_pseudo is fine and all, this just becomes a cascade once we go to UL - alloc_file_pseudo, 4.19 - alloc_anon_inode, 3.13 - new_inode_pseudo, 3.1 this becomes shit so fast when this one just works. I dunno the implications, who cares, its legacy shit. context_inode is NULL on anon_inode_getfile_secure call here so its not that important ref: torvalds/linux@91a9ab7 this also removes lsm notification it does when inode is being created. not really needed. tests: sunny:/ $ su root@localhost:[~]:# screen [screen is terminating] root@localhost:[~]:# echo 3070 > /proc/self/fd/0 3070 root@localhost:[~]:# uname -vr 4.14.356+12-mojito/14e8dc1 #0 SMP PREEMPT Wed Dec 17 19:08:23 PST 2025 devlog tiann@cf72948 * tiann@fe0d4b5 tiann@8ba2e35 Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
This commit adds compat to tiann#3070 while backporting alloc_file_pseudo is fine and all, this just becomes a cascade once we go to UL - alloc_file_pseudo, 4.19 - alloc_anon_inode, 3.13 - new_inode_pseudo, 3.1 this becomes shit so fast when this one just works. I dunno the implications, who cares, its legacy shit. context_inode is NULL on anon_inode_getfile_secure call here so its not that important ref: torvalds/linux@91a9ab7 this also removes lsm notification it does when inode is being created. not really needed. tests: sunny:/ $ su root@localhost:[~]:# screen [screen is terminating] root@localhost:[~]:# echo 3070 > /proc/self/fd/0 3070 root@localhost:[~]:# uname -vr 4.14.356+12-mojito/14e8dc1 #0 SMP PREEMPT Wed Dec 17 19:08:23 PST 2025 devlog tiann@cf72948 * tiann@fe0d4b5 tiann@8ba2e35 Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
This commit adds compat to tiann#3070 while backporting alloc_file_pseudo is fine and all, this just becomes a cascade once we go to UL - alloc_file_pseudo, 4.19 - alloc_anon_inode, 3.13 - new_inode_pseudo, 3.1 this becomes shit so fast when this one just works. I dunno the implications, who cares, its legacy shit. context_inode is NULL on anon_inode_getfile_secure call here so its not that important ref: torvalds/linux@91a9ab7 this also removes lsm notification it does when inode is being created. not really needed. tests: sunny:/ $ su root@localhost:[~]:# screen [screen is terminating] root@localhost:[~]:# echo 3070 > /proc/self/fd/0 3070 root@localhost:[~]:# uname -vr 4.14.356+12-mojito/14e8dc1 #0 SMP PREEMPT Wed Dec 17 19:08:23 PST 2025 devlog tiann@cf72948 * tiann@fe0d4b5 tiann@8ba2e35 Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
- [x] Use d_dname to forge paths: Fixes an issue where some programs (such as [screen](https://cgit.git.savannah.gnu.org/cgit/screen.git/tree/src/screen.c?id=27b44ea4ebb18296e6ceffaf5a2e3638c8a950be#n1914)) required a valid tty path. - [x] Enhance security using anon_inode_create_getfile and implements this function for older kernel versions. - [x] Support reopen from /proc/pid/fd
This commit adds compat to tiann#3070 while backporting alloc_file_pseudo is fine and all, this just becomes a cascade once we go to UL - alloc_file_pseudo, 4.19 - alloc_anon_inode, 3.13 - new_inode_pseudo, 3.1 this becomes shit so fast when this one just works. I dunno the implications, who cares, its legacy shit. context_inode is NULL on anon_inode_getfile_secure call here so its not that important ref: torvalds/linux@91a9ab7 this also removes lsm notification it does when inode is being created. not really needed. tests: sunny:/ $ su root@localhost:[~]:# screen [screen is terminating] root@localhost:[~]:# echo 3070 > /proc/self/fd/0 3070 root@localhost:[~]:# uname -vr 4.14.356+12-mojito/14e8dc1 #0 SMP PREEMPT Wed Dec 17 19:08:23 PST 2025 devlog tiann@cf72948 * tiann@fe0d4b5 tiann@8ba2e35 Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
This commit adds compat to tiann#3070 while backporting alloc_file_pseudo is fine and all, this just becomes a cascade once we go to UL - alloc_file_pseudo, 4.19 - alloc_anon_inode, 3.13 - new_inode_pseudo, 3.1 this becomes shit so fast when this one just works. I dunno the implications, who cares, its legacy shit. context_inode is NULL on anon_inode_getfile_secure call here so its not that important ref: torvalds/linux@91a9ab7 this also removes lsm notification it does when inode is being created. not really needed. tests: sunny:/ $ su root@localhost:[~]:# screen [screen is terminating] root@localhost:[~]:# echo 3070 > /proc/self/fd/0 3070 root@localhost:[~]:# uname -vr 4.14.356+12-mojito/14e8dc1 #0 SMP PREEMPT Wed Dec 17 19:08:23 PST 2025 devlog tiann@cf72948 * tiann@fe0d4b5 tiann@8ba2e35 Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
This commit adds compat to tiann#3070 while backporting alloc_file_pseudo is fine and all, this just becomes a cascade once we go to UL - alloc_file_pseudo, 4.19 - alloc_anon_inode, 3.13 - new_inode_pseudo, 3.1 this becomes shit so fast when this one just works. I dunno the implications, who cares, its legacy shit. context_inode is NULL on anon_inode_getfile_secure call here so its not that important ref: torvalds/linux@91a9ab7 this also removes lsm notification it does when inode is being created. not really needed. tests: sunny:/ $ su root@localhost:[~]:# screen [screen is terminating] root@localhost:[~]:# echo 3070 > /proc/self/fd/0 3070 root@localhost:[~]:# uname -vr 4.14.356+12-mojito/14e8dc1 #0 SMP PREEMPT Wed Dec 17 19:08:23 PST 2025 devlog tiann@cf72948 * tiann@fe0d4b5 tiann@8ba2e35 Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
This commit adds compat to tiann#3070 while backporting alloc_file_pseudo is fine and all, this just becomes a cascade once we go to UL - alloc_file_pseudo, 4.19 - alloc_anon_inode, 3.13 - new_inode_pseudo, 3.1 this becomes shit so fast when this one just works. I dunno the implications, who cares, its legacy shit. context_inode is NULL on anon_inode_getfile_secure call here so its not that important ref: torvalds/linux@91a9ab7 this also removes lsm notification it does when inode is being created. not really needed. tests: sunny:/ $ su root@localhost:[~]:# screen [screen is terminating] root@localhost:[~]:# echo 3070 > /proc/self/fd/0 3070 root@localhost:[~]:# uname -vr 4.14.356+12-mojito/14e8dc1 #0 SMP PREEMPT Wed Dec 17 19:08:23 PST 2025 devlog tiann@cf72948 * tiann@fe0d4b5 tiann@8ba2e35 Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
This commit adds compat to tiann#3070 while backporting alloc_file_pseudo is fine and all, this just becomes a cascade once we go to UL - alloc_file_pseudo, 4.19 - alloc_anon_inode, 3.13 - new_inode_pseudo, 3.1 this becomes shit so fast when this one just works. I dunno the implications, who cares, its legacy shit. context_inode is NULL on anon_inode_getfile_secure call here so its not that important ref: torvalds/linux@91a9ab7 this also removes lsm notification it does when inode is being created. not really needed. tests: sunny:/ $ su root@localhost:[~]:# screen [screen is terminating] root@localhost:[~]:# echo 3070 > /proc/self/fd/0 3070 root@localhost:[~]:# uname -vr 4.14.356+12-mojito/14e8dc1 #0 SMP PREEMPT Wed Dec 17 19:08:23 PST 2025 devlog tiann@cf72948 * tiann@fe0d4b5 tiann@8ba2e35 Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
This commit adds compat to tiann#3070 while backporting alloc_file_pseudo is fine and all, this just becomes a cascade once we go to UL - alloc_file_pseudo, 4.19 - alloc_anon_inode, 3.13 - new_inode_pseudo, 3.1 this becomes shit so fast when this one just works. I dunno the implications, who cares, its legacy shit. context_inode is NULL on anon_inode_getfile_secure call here so its not that important ref: torvalds/linux@91a9ab7 this also removes lsm notification it does when inode is being created. not really needed. tests: sunny:/ $ su root@localhost:[~]:# screen [screen is terminating] root@localhost:[~]:# echo 3070 > /proc/self/fd/0 3070 root@localhost:[~]:# uname -vr 4.14.356+12-mojito/14e8dc1 #0 SMP PREEMPT Wed Dec 17 19:08:23 PST 2025 devlog tiann@cf72948 * tiann@fe0d4b5 tiann@8ba2e35 Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
This commit adds compat to tiann#3070 while backporting alloc_file_pseudo is fine and all, this just becomes a cascade once we go to UL - alloc_file_pseudo, 4.19 - alloc_anon_inode, 3.13 - new_inode_pseudo, 3.1 this becomes shit so fast when this one just works. I dunno the implications, who cares, its legacy shit. context_inode is NULL on anon_inode_getfile_secure call here so its not that important ref: torvalds/linux@91a9ab7 this also removes lsm notification it does when inode is being created. not really needed. tests: sunny:/ $ su root@localhost:[~]:# screen [screen is terminating] root@localhost:[~]:# echo 3070 > /proc/self/fd/0 3070 root@localhost:[~]:# uname -vr 4.14.356+12-mojito/14e8dc1 #0 SMP PREEMPT Wed Dec 17 19:08:23 PST 2025 devlog tiann@cf72948 * tiann@fe0d4b5 tiann@8ba2e35 Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
This commit adds compat to tiann#3070 while backporting alloc_file_pseudo is fine and all, this just becomes a cascade once we go to UL - alloc_file_pseudo, 4.19 - alloc_anon_inode, 3.13 - new_inode_pseudo, 3.1 this becomes shit so fast when this one just works. I dunno the implications, who cares, its legacy shit. context_inode is NULL on anon_inode_getfile_secure call here so its not that important ref: torvalds/linux@91a9ab7 this also removes lsm notification it does when inode is being created. not really needed. tests: sunny:/ $ su root@localhost:[~]:# screen [screen is terminating] root@localhost:[~]:# echo 3070 > /proc/self/fd/0 3070 root@localhost:[~]:# uname -vr 4.14.356+12-mojito/14e8dc1 #0 SMP PREEMPT Wed Dec 17 19:08:23 PST 2025 devlog tiann@cf72948 * tiann@fe0d4b5 tiann@8ba2e35 Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
This commit adds compat to tiann#3070 while backporting alloc_file_pseudo is fine and all, this just becomes a cascade once we go to UL - alloc_file_pseudo, 4.19 - alloc_anon_inode, 3.13 - new_inode_pseudo, 3.1 this becomes shit so fast when this one just works. I dunno the implications, who cares, its legacy shit. context_inode is NULL on anon_inode_getfile_secure call here so its not that important ref: torvalds/linux@91a9ab7 this also removes lsm notification it does when inode is being created. not really needed. tests: sunny:/ $ su root@localhost:[~]:# screen [screen is terminating] root@localhost:[~]:# echo 3070 > /proc/self/fd/0 3070 root@localhost:[~]:# uname -vr 4.14.356+12-mojito/14e8dc1 #0 SMP PREEMPT Wed Dec 17 19:08:23 PST 2025 devlog tiann@cf72948 * tiann@fe0d4b5 tiann@8ba2e35 Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
This commit adds compat to tiann#3070 while backporting alloc_file_pseudo is fine and all, this just becomes a cascade once we go to UL - alloc_file_pseudo, 4.19 - alloc_anon_inode, 3.13 - new_inode_pseudo, 3.1 this becomes shit so fast when this one just works. I dunno the implications, who cares, its legacy shit. context_inode is NULL on anon_inode_getfile_secure call here so its not that important ref: torvalds/linux@91a9ab7 this also removes lsm notification it does when inode is being created. not really needed. tests: sunny:/ $ su root@localhost:[~]:# screen [screen is terminating] root@localhost:[~]:# echo 3070 > /proc/self/fd/0 3070 root@localhost:[~]:# uname -vr 4.14.356+12-mojito/14e8dc1 #0 SMP PREEMPT Wed Dec 17 19:08:23 PST 2025 devlog tiann@cf72948 * tiann@fe0d4b5 tiann@8ba2e35 Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
This commit adds compat to tiann#3070 while backporting alloc_file_pseudo is fine and all, this just becomes a cascade once we go to UL - alloc_file_pseudo, 4.19 - alloc_anon_inode, 3.13 - new_inode_pseudo, 3.1 this becomes shit so fast when this one just works. I dunno the implications, who cares, its legacy shit. context_inode is NULL on anon_inode_getfile_secure call here so its not that important ref: torvalds/linux@91a9ab7 this also removes lsm notification it does when inode is being created. not really needed. tests: sunny:/ $ su root@localhost:[~]:# screen [screen is terminating] root@localhost:[~]:# echo 3070 > /proc/self/fd/0 3070 root@localhost:[~]:# uname -vr 4.14.356+12-mojito/14e8dc1 #0 SMP PREEMPT Wed Dec 17 19:08:23 PST 2025 devlog tiann@cf72948 * tiann@fe0d4b5 tiann@8ba2e35 Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
This commit adds compat to tiann#3070 while backporting alloc_file_pseudo is fine and all, this just becomes a cascade once we go to UL - alloc_file_pseudo, 4.19 - alloc_anon_inode, 3.13 - new_inode_pseudo, 3.1 this becomes shit so fast when this one just works. I dunno the implications, who cares, its legacy shit. context_inode is NULL on anon_inode_getfile_secure call here so its not that important ref: torvalds/linux@91a9ab7 this also removes lsm notification it does when inode is being created. not really needed. tests: sunny:/ $ su root@localhost:[~]:# screen [screen is terminating] root@localhost:[~]:# echo 3070 > /proc/self/fd/0 3070 root@localhost:[~]:# uname -vr 4.14.356+12-mojito/14e8dc1 #0 SMP PREEMPT Wed Dec 17 19:08:23 PST 2025 devlog tiann@cf72948 * tiann@fe0d4b5 tiann@8ba2e35 Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
This commit adds compat to tiann#3070 while backporting alloc_file_pseudo is fine and all, this just becomes a cascade once we go to UL - alloc_file_pseudo, 4.19 - alloc_anon_inode, 3.13 - new_inode_pseudo, 3.1 this becomes shit so fast when this one just works. I dunno the implications, who cares, its legacy shit. context_inode is NULL on anon_inode_getfile_secure call here so its not that important ref: torvalds/linux@91a9ab7 this also removes lsm notification it does when inode is being created. not really needed. tests: sunny:/ $ su root@localhost:[~]:# screen [screen is terminating] root@localhost:[~]:# echo 3070 > /proc/self/fd/0 3070 root@localhost:[~]:# uname -vr 4.14.356+12-mojito/14e8dc1 #0 SMP PREEMPT Wed Dec 17 19:08:23 PST 2025 devlog tiann@cf72948 * tiann@fe0d4b5 tiann@8ba2e35 Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
This commit adds compat to tiann#3070 while backporting alloc_file_pseudo is fine and all, this just becomes a cascade once we go to UL - alloc_file_pseudo, 4.19 - alloc_anon_inode, 3.13 - new_inode_pseudo, 3.1 this becomes shit so fast when this one just works. I dunno the implications, who cares, its legacy shit. context_inode is NULL on anon_inode_getfile_secure call here so its not that important ref: torvalds/linux@91a9ab7 this also removes lsm notification it does when inode is being created. not really needed. tests: sunny:/ $ su root@localhost:[~]:# screen [screen is terminating] root@localhost:[~]:# echo 3070 > /proc/self/fd/0 3070 root@localhost:[~]:# uname -vr 4.14.356+12-mojito/14e8dc1 #0 SMP PREEMPT Wed Dec 17 19:08:23 PST 2025 devlog tiann@cf72948 * tiann@fe0d4b5 tiann@8ba2e35 Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
This commit adds compat to tiann#3070 while backporting alloc_file_pseudo is fine and all, this just becomes a cascade once we go to UL - alloc_file_pseudo, 4.19 - alloc_anon_inode, 3.13 - new_inode_pseudo, 3.1 this becomes shit so fast when this one just works. I dunno the implications, who cares, its legacy shit. context_inode is NULL on anon_inode_getfile_secure call here so its not that important ref: torvalds/linux@91a9ab7 this also removes lsm notification it does when inode is being created. not really needed. tests: sunny:/ $ su root@localhost:[~]:# screen [screen is terminating] root@localhost:[~]:# echo 3070 > /proc/self/fd/0 3070 root@localhost:[~]:# uname -vr 4.14.356+12-mojito/14e8dc1 #0 SMP PREEMPT Wed Dec 17 19:08:23 PST 2025 devlog tiann@cf72948 * tiann@fe0d4b5 tiann@8ba2e35 Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
This commit adds compat to tiann#3070 while backporting alloc_file_pseudo is fine and all, this just becomes a cascade once we go to UL - alloc_file_pseudo, 4.19 - alloc_anon_inode, 3.13 - new_inode_pseudo, 3.1 this becomes shit so fast when this one just works. I dunno the implications, who cares, its legacy shit. context_inode is NULL on anon_inode_getfile_secure call here so its not that important ref: torvalds/linux@91a9ab7 this also removes lsm notification it does when inode is being created. not really needed. tests: sunny:/ $ su root@localhost:[~]:# screen [screen is terminating] root@localhost:[~]:# echo 3070 > /proc/self/fd/0 3070 root@localhost:[~]:# uname -vr 4.14.356+12-mojito/14e8dc1 #0 SMP PREEMPT Wed Dec 17 19:08:23 PST 2025 devlog tiann@cf72948 * tiann@fe0d4b5 tiann@8ba2e35 Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
This commit adds compat to tiann#3070 while backporting alloc_file_pseudo is fine and all, this just becomes a cascade once we go to UL - alloc_file_pseudo, 4.19 - alloc_anon_inode, 3.13 - new_inode_pseudo, 3.1 this becomes shit so fast when this one just works. I dunno the implications, who cares, its legacy shit. context_inode is NULL on anon_inode_getfile_secure call here so its not that important ref: torvalds/linux@91a9ab7 this also removes lsm notification it does when inode is being created. not really needed. tests: sunny:/ $ su root@localhost:[~]:# screen [screen is terminating] root@localhost:[~]:# echo 3070 > /proc/self/fd/0 3070 root@localhost:[~]:# uname -vr 4.14.356+12-mojito/14e8dc1 #0 SMP PREEMPT Wed Dec 17 19:08:23 PST 2025 devlog tiann@cf72948 * tiann@fe0d4b5 tiann@8ba2e35 Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
This commit adds compat to tiann#3070 while backporting alloc_file_pseudo is fine and all, this just becomes a cascade once we go to UL - alloc_file_pseudo, 4.19 - alloc_anon_inode, 3.13 - new_inode_pseudo, 3.1 this becomes shit so fast when this one just works. I dunno the implications, who cares, its legacy shit. context_inode is NULL on anon_inode_getfile_secure call here so its not that important ref: torvalds/linux@91a9ab7 this also removes lsm notification it does when inode is being created. not really needed. tests: sunny:/ $ su root@localhost:[~]:# screen [screen is terminating] root@localhost:[~]:# echo 3070 > /proc/self/fd/0 3070 root@localhost:[~]:# uname -vr 4.14.356+12-mojito/14e8dc1 #0 SMP PREEMPT Wed Dec 17 19:08:23 PST 2025 devlog tiann@cf72948 * tiann@fe0d4b5 tiann@8ba2e35 Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
This commit adds compat to tiann#3070 while backporting alloc_file_pseudo is fine and all, this just becomes a cascade once we go to UL - alloc_file_pseudo, 4.19 - alloc_anon_inode, 3.13 - new_inode_pseudo, 3.1 this becomes shit so fast when this one just works. I dunno the implications, who cares, its legacy shit. context_inode is NULL on anon_inode_getfile_secure call here so its not that important ref: torvalds/linux@91a9ab7 this also removes lsm notification it does when inode is being created. not really needed. tests: sunny:/ $ su root@localhost:[~]:# screen [screen is terminating] root@localhost:[~]:# echo 3070 > /proc/self/fd/0 3070 root@localhost:[~]:# uname -vr 4.14.356+12-mojito/14e8dc1 #0 SMP PREEMPT Wed Dec 17 19:08:23 PST 2025 devlog tiann@cf72948 * tiann@fe0d4b5 tiann@8ba2e35 Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
This commit adds compat to tiann#3070 while backporting alloc_file_pseudo is fine and all, this just becomes a cascade once we go to UL - alloc_file_pseudo, 4.19 - alloc_anon_inode, 3.13 - new_inode_pseudo, 3.1 this becomes shit so fast when this one just works. I dunno the implications, who cares, its legacy shit. context_inode is NULL on anon_inode_getfile_secure call here so its not that important ref: torvalds/linux@91a9ab7 this also removes lsm notification it does when inode is being created. not really needed. tests: sunny:/ $ su root@localhost:[~]:# screen [screen is terminating] root@localhost:[~]:# echo 3070 > /proc/self/fd/0 3070 root@localhost:[~]:# uname -vr 4.14.356+12-mojito/14e8dc1 #0 SMP PREEMPT Wed Dec 17 19:08:23 PST 2025 devlog tiann@cf72948 * tiann@fe0d4b5 tiann@8ba2e35 Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
This commit adds compat to tiann#3070 while backporting alloc_file_pseudo is fine and all, this just becomes a cascade once we go to UL - alloc_file_pseudo, 4.19 - alloc_anon_inode, 3.13 - new_inode_pseudo, 3.1 this becomes shit so fast when this one just works. I dunno the implications, who cares, its legacy shit. context_inode is NULL on anon_inode_getfile_secure call here so its not that important ref: torvalds/linux@91a9ab7 this also removes lsm notification it does when inode is being created. not really needed. tests: sunny:/ $ su root@localhost:[~]:# screen [screen is terminating] root@localhost:[~]:# echo 3070 > /proc/self/fd/0 3070 root@localhost:[~]:# uname -vr 4.14.356+12-mojito/14e8dc1 #0 SMP PREEMPT Wed Dec 17 19:08:23 PST 2025 devlog tiann@cf72948 * tiann@fe0d4b5 tiann@8ba2e35 Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
This commit adds compat to tiann#3070 while backporting alloc_file_pseudo is fine and all, this just becomes a cascade once we go to UL - alloc_file_pseudo, 4.19 - alloc_anon_inode, 3.13 - new_inode_pseudo, 3.1 this becomes shit so fast when this one just works. I dunno the implications, who cares, its legacy shit. context_inode is NULL on anon_inode_getfile_secure call here so its not that important ref: torvalds/linux@91a9ab7 this also removes lsm notification it does when inode is being created. not really needed. tests: sunny:/ $ su root@localhost:[~]:# screen [screen is terminating] root@localhost:[~]:# echo 3070 > /proc/self/fd/0 3070 root@localhost:[~]:# uname -vr 4.14.356+12-mojito/14e8dc1 #0 SMP PREEMPT Wed Dec 17 19:08:23 PST 2025 devlog tiann@cf72948 * tiann@fe0d4b5 tiann@8ba2e35 Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
This commit adds compat to tiann#3070 while backporting alloc_file_pseudo is fine and all, this just becomes a cascade once we go to UL - alloc_file_pseudo, 4.19 - alloc_anon_inode, 3.13 - new_inode_pseudo, 3.1 this becomes shit so fast when this one just works. I dunno the implications, who cares, its legacy shit. context_inode is NULL on anon_inode_getfile_secure call here so its not that important ref: torvalds/linux@91a9ab7 this also removes lsm notification it does when inode is being created. not really needed. tests: sunny:/ $ su root@localhost:[~]:# screen [screen is terminating] root@localhost:[~]:# echo 3070 > /proc/self/fd/0 3070 root@localhost:[~]:# uname -vr 4.14.356+12-mojito/14e8dc1 #0 SMP PREEMPT Wed Dec 17 19:08:23 PST 2025 devlog tiann@cf72948 * tiann@fe0d4b5 tiann@8ba2e35 Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
This commit adds compat to tiann#3070 while backporting alloc_file_pseudo is fine and all, this just becomes a cascade once we go to UL - alloc_file_pseudo, 4.19 - alloc_anon_inode, 3.13 - new_inode_pseudo, 3.1 this becomes shit so fast when this one just works. I dunno the implications, who cares, its legacy shit. context_inode is NULL on anon_inode_getfile_secure call here so its not that important ref: torvalds/linux@91a9ab7 this also removes lsm notification it does when inode is being created. not really needed. tests: sunny:/ $ su root@localhost:[~]:# screen [screen is terminating] root@localhost:[~]:# echo 3070 > /proc/self/fd/0 3070 root@localhost:[~]:# uname -vr 4.14.356+12-mojito/14e8dc1 #0 SMP PREEMPT Wed Dec 17 19:08:23 PST 2025 devlog tiann@cf72948 * tiann@fe0d4b5 tiann@8ba2e35 Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
This commit adds compat to tiann#3070 while backporting alloc_file_pseudo is fine and all, this just becomes a cascade once we go to UL - alloc_file_pseudo, 4.19 - alloc_anon_inode, 3.13 - new_inode_pseudo, 3.1 this becomes shit so fast when this one just works. I dunno the implications, who cares, its legacy shit. context_inode is NULL on anon_inode_getfile_secure call here so its not that important ref: torvalds/linux@91a9ab7 this also removes lsm notification it does when inode is being created. not really needed. tests: sunny:/ $ su root@localhost:[~]:# screen [screen is terminating] root@localhost:[~]:# echo 3070 > /proc/self/fd/0 3070 root@localhost:[~]:# uname -vr 4.14.356+12-mojito/14e8dc1 #0 SMP PREEMPT Wed Dec 17 19:08:23 PST 2025 devlog tiann@cf72948 * tiann@fe0d4b5 tiann@8ba2e35 Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
Uh oh!
There was an error while loading. Please reload this page.