]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Do not set default AFS_SYSCALL
authorAndrew Deason <adeason@sinenomine.net>
Fri, 13 Mar 2015 15:33:05 +0000 (10:33 -0500)
committerBenjamin Kaduk <kaduk@mit.edu>
Sat, 2 Jun 2018 22:44:39 +0000 (18:44 -0400)
Currently, afs_args.h will define an AFS_SYSCALL value by default (31)
if the current platform does not define an AFS_SYSCALL value on its
own (via its param.h info).

This is dangerous, since if a platform does not define an AFS_SYSCALL,
or if it happens to not be defined for any reason, some code may try
to call syscall 31, which could be anything.

So get rid of this. If this breaks the build on any platform, then
that platform should define AFS_SYSCALL in its own platform-specific
header, or get rid of the problematic AFS_SYSCALL usage.

Reviewed-on: https://gerrit.openafs.org/11938
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
(cherry picked from commit 0a896b93c86e86f5b438880ef1634b4e39ee5779)

Change-Id: Ifcc17d5e26fde01302c43331ffdf005b6b9c3bd3
Reviewed-on: https://gerrit.openafs.org/13093
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
src/config/afs_args.h

index 2609bcef45064ca5d628d8b0a33f5ba05abba13e..dd90b80e754ebe88ca70483ffe1ca1a33808b0ab 100644 (file)
 #define AFSCALL_RXSTATS_DISABLE        0x2     /* Disable RX stats */
 #define AFSCALL_RXSTATS_CLEAR  0x4     /* Clear RX stats */
 
-/* Main afs syscall entry; this number may vary per system (i.e. defined in afs/param.h) */
-#ifndef        AFS_SYSCALL
-#define AFS_SYSCALL            31
-#endif
-
 /* arguments passed by afsd */
 #define IDTYPE_UID 0