I am running Gentoo Hardened with kernel 4.1.7-hardened-r1 and I am trying to encrypt a file using GPG from a shell session opened from SSH and with the DISPLAY
variable disabled in order to use pinentry-curses for password prompt. Using gpg -o file.gpg --symmetric file
I can encrypt just fine. Using pv file | gpg -o file.gpg --symmetric
I get the following error message:
gpg-agent[30745]: command get_passphrase failed: Inappropriate ioctl for device