Commit Graph

6 Commits (master)

Author SHA1 Message Date
Yann GASCUEL 53e3c86c58 examples/ld_nfs.c: feature: faking uid and gid
add the possiblity of faking the uid and the gid in the nfs context.
uid and gid value are read from env variables LD_NFS_UID and LD_NFS_GID.
This can be useful on "insecure" enabled NFS share to make the server
trust you as a root.

Few lines added to the README to document the feature.
2017-11-26 16:24:03 +01:00
Yann GASCUEL a3b793342b examples/ld_nfs.c : add hook for chmod and chown
add hook on : __fxstatat(), __fxstatat64(), fchmodat(), fchown(),
chown(), fchownat() to support new implementation of chmod and to add
support for chown
2017-11-26 16:23:40 +01:00
Yann GASCUEL fc568809d5 examples/ld_nfs.c : fix: removing usec from fxstat
usec are not anymore supported in recent implementations of stat_t
(and they are not very usefull in that program btw)
2017-11-26 16:23:11 +01:00
Ronnie Sahlberg ec3a3afeae EXAMPLES: convert remaining nfs_[f]stat to nfs_[f]stat64
The old nfs_[f]stat calls are deprecated. Convert to the newer
nfs_[f]stat64 call that takes struct nfs_stat_64

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2015-05-24 07:38:17 -07:00
Ronnie Sahlberg d84d168f0f Change license for the ld preload hack to gplv3 2014-02-11 18:36:24 -08:00
Ronnie Sahlberg b8c28d541e Add a simple LD_PRELOAD toy to make cat and cp nfs-aware 2014-02-02 18:03:50 -08:00