Re: socket programme gives "operation not permitted"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On 26/12/2007, shaunak saha <reach2shaunak@xxxxxxxxx> wrote:
>  I m trying to execute a socket program.My code is only executing a
> "socket(AF_UNIX, SOCK_STREAM, 0)" and "bind" system call.I m using struct
> sockaddr_un where sun_family i m setting to PF_UNIX and sun_path to /opt
> before calling bind.
> When i do it in path /opt bind fails but in /tmp it is able to bind.I m
> executing the code as root so have full permission in /opt.I m able to do al
> file operation in /opt.
> The "perror" system call in /opt shows "bind: Operation not permitted"

That should happen if the filesystem /opt is on does not support
sockets (for example FAT), even for root. So the filesystem type is
one thing to check, I don't know what else.

Regards
-
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux