hooks scripts and noexec partition
- From
- krzf83@gmail.com <krzf83@gmail.com>
- Date
- Jan 14, 2014, 15:41 UTC
- Message-ID
- <CAJ1PRS=96aSp3GE+wj=zHX=JGfZbjUeiUuiDDvfJNuRhrbK_Yg@mail.gmail.com>
git can't execute hooks no partitions mounted with noexec - even if those are just scripts with shebang line and they actualy work by hooks/./post-comit (because I use small patch on kernel that allows running scripts that way on noexec partition)
fs/exec.c
// error = -EACCES; // if (file->f_path.mnt->mnt_flags & MNT_NOEXEC) // goto exit; ... // if (file->f_path.mnt->mnt_flags & MNT_NOEXEC) // goto exit;