-
Notifications
You must be signed in to change notification settings - Fork 66
Description
I cloned and downloaded bcrypt as per instructions. I wrote this sample code:
#include <iostream>
#include <bcrypt/BCrypt.hpp>
int main(){
std::string password;
std::cout << "Enter the password\n";
std::getline(std::cin, password);
BCrypt bcrypt;
std::cout << bcrypt.generateHash(password) << "\n";
}
I compiled using g++ test.cpp -lbcrypt -Wl,-rpath=/usr/local/lib64 and it works. I then tried to incorporate bcrypt in my web app. The goal of the app is to add-users to a database. I am using bcrypt to hash the passwords. But my error_log says that
error while loading shared libraries: libbcrypt.so.1: cannot enable executable stack as shared object requires: Permission denied
If I disable SELinux, it works. But I don't want to do it. So I wanted to ask if bcrypt actually needs and executable stack? I am asking this cause one of the solutions when I googled the issue was to disable creation of executable stack for that library.
I am using fastcgi++ on Fedora 29 Workstation