Comments (8)
Hi, I actually think there are two issues.
Firstly, there might not be any secondary gids, in which case getgroups()
in line 126 will return 0 and my_groups[0]
should not be used (it will probably be 0). It could also return a -1 on error, and also then my_groups[0]
should not be used.
Secondly, there might be secondary gids, but the mapping from gid to a group name might not exist for various reasons. The latter case will give grent == NULL
, your scenario.
from gct.
So, is it ok to patch this?
from gct.
I agree it needs fixing in the test. Probably by using getgid() instead of my_groups[0] in case rc==0 and producing a real error in case rc==-1.
I'll try to make a pull request, but it might take some days.
from gct.
Ok, here is #96
Assuming launchpad does actually provide groupnames (otherwise it's a launchpad bug I'd say), I think this should fix your issue.
from gct.
Looks like it didn't work...
umask 077; /usr/bin/openssl genrsa -out testcred.key 2048
:
Generating RSA private key, 2048 bit long modulus (2 primes)
....+++++
..............+++++
e is 65537 (0x010001)
/usr/bin/openssl req -subj "/CN=test" -new -key testcred.key -out testcred.req -config testcred.cnf
Can't load /sbuild-nonexistent/.rnd into RNG
4396691720992:error:2406F079:random number generator:RAND_load_file:Cannot open file:../crypto/rand/randfile.c:98:Filename=/sbuild-nonexistent/.rnd
Cannot write random bytes:
4396691720992:error:24070079:random number generator:RAND_write_file:Cannot open file:../crypto/rand/randfile.c:233:Filename=/sbuild-nonexistent/.rnd
umask 022; /usr/bin/openssl x509 -passin pass:globus -req -days 365 -in testcred.req -CA testcred.cacert -CAkey testcred.cakey -out testcred.cert
Signature ok
subject=CN = test
Getting CA Private Key
make[5]: Entering directory '/<<PKGBUILDDIR>>/test'
PASS: ipc-test
PASS: cmp_alias_ent_test
PASS: error_response_test
ERROR: sharing_allowed_test
PASS: setup-chroot-test
======================================================
globus_gridftp_server 13.11: test/test-suite.log
======================================================
# TOTAL: 5
# PASS: 4
# SKIP: 0
# XFAIL: 0
# FAIL: 0
# XPASS: 0
# ERROR: 1
.. contents:: :depth: 2
ERROR: sharing_allowed_test
===========================
Unable to determine my default group name (gid 110)
ERROR sharing_allowed_test (exit status: 99)
============================================================================
Testsuite summary for globus_gridftp_server 13.11
============================================================================
# TOTAL: 5
# PASS: 4
# SKIP: 0
# XFAIL: 0
# FAIL: 0
# XPASS: 0
# ERROR: 1
============================================================================
See test/test-suite.log
Please report to https://github.com/gridcf/gct/issues
from gct.
I would say that if launchpad doesn't provide a groupname for gid 110, that's a bug in the launchpad build environment. There actually is already an open bug for that: https://bugs.launchpad.net/launchpad-buildd/+bug/1820348
I suggest for the time being you could disable the test in your packaging on launchpad?
from gct.
thanks, I reported my bug too, and marked as duplicate of that one...
Msalle for now the test is already disabled, thanks! I think we can close this upstream issue
from gct.
Fixed in GCT v6.2.20190906.
from gct.
Related Issues (20)
- fail to compiler gct-6.2 because of openssl HOT 3
- Can't install gct-toolkit release gct-6.2.20210826 HOT 13
- fail to globus-job-run becasue of no permission to access tmp directory on execution node
- globus-gridftp, globus-gram5 and globus-gsi not found HOT 1
- globus_gsi_cert_utils_error.c:42: possible missing "," ? HOT 5
- globus-job-run fails because the job manager failed to create an internal script argument file HOT 2
- where is MDS in GT6 HOT 2
- globus-job-run fails because of no permission to tmp directory HOT 2
- DNS error on repo.gridcf.org HOT 3
- TLSv1.3 handling incorrectly assumes exactly two tickets will be sent
- Weak GSSAPIKexAlgorithms ciphers detected HOT 5
- grid-proxy-init w/OpenSSL 3.x: Weakly encrypted PKCS#12 keystores can't be processed HOT 1
- pipeline doesn't work: ERROR: too many url strings specified HOT 6
- Typo in globus_gsi_system_config.c HOT 1
- autoreconf failure: files not found HOT 1
- Build error: undefined reference to `FIPS_mode' HOT 9
- confusion between ASN1_UTCTIME and ASN1_GENERALIZEDTIME HOT 5
- Lack of IO error checks generate incorrect file checksums HOT 4
- Unknown/unsupported OpenSSL version ("30100040 (OpenSSL 3.1.4 24 Oct 2023)") HOT 9
- RHEL9 clients and dCache on java-17 compatibility HOT 22
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gct.