git/list[1] front-page[2] threads[3] people[4] search[5] about
 

hooks scripts and noexec partition

From
Kkrzf83@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;

Next: Jeff King
Message 1 of 4 in “hooks scripts and noexec partition”
  1. krzf83@gmail.comJan 14, 2014
  2. Jeff KingJan 15, 2014
  3. krzf83@gmail.comDec 14, 2014
  4. Jeff KingDec 17, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.